Formats the value of the current instance using the specified format.
'Declaration
Public Overloads Function ToString( _
ByVal As System.String, _
ByVal As System.IFormatProvider _
) As System.String
'Usage
Dim instance As GlobalObjectId
Dim format As System.String
Dim formatProvider As System.IFormatProvider
Dim value As System.String
value = instance.ToString(format, formatProvider)
public System.string ToString(
System.string ,
System.IFormatProvider
)
public function ToString(
: System.String;
: System.IFormatProvider
): System.String;
public function ToString(
: System.String,
: System.IFormatProvider
) : System.String;
public: System.string* ToString(
System.string* ,
System.IFormatProvider*
)
public:
System.String^ ToString(
System.String^ ,
System.IFormatProvider^
)
Parameters
- format
- The System.String specifying the format for this GlobalObjectId. Valid values are "G", "N", "D", "B", "P", "F", (""), or null.
- formatProvider
- The System.IFormatProvider to use to format the value.-or- null to obtain the numeric format information from the current locale setting of the operating system.
Return Value
A System.String containing the value of the current instance in the specified format.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2