NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

UInt16.Format (String, IServiceObjectProvider)

Converts the value of the current instance to a String with the specified format string. The UInt16 type is not CLS compliant. The CLS-compliant alternative is Int16.

[C#]
public virtual string Format(
   string format,
   IServiceObjectProvider sop
);
[C++]
public: virtual String* Format(
   String* format,
   IServiceObjectProvider* sop
);
[JScript]
public function Format(
   format : String,
   sop : IServiceObjectProvider
) : String;

[Visual Basic] The UInt16 type cannot be used in Visual Basic.

Parameters [C#, C++, JScript]

format
The format string.
sop
The IServiceObjectProvider used to format the number.

Return Value [C#, C++, JScript]

A string representation of the value of the current instance in the format specified by format.

Remarks [C#, C++, JScript]

If format is null or an empty string, the number is formatted as if the string general format ("G") were specified.

The sop parameter specifies the format provider from which the NumberFormatInfo instance will be obtained. If sop is null, the numeric format information is obtained from the current locale (see NumberFormatInfo and CultureInfo for more information for numeric and culture formats).

NumberFormatInfo supplies information such as the characters to use for decimal and thousand separators, and the spelling and placement of currency symbols in monetary values.

See Also

UInt16 Structure | UInt16 Members | System Namespace | UInt16.Format Overload List | String | NumberStyles | IServiceObjectProvider