Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Returns an object that provides formatting services for the specified type.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Function GetFormat ( _
formatType As Type _
) As Object
Object GetFormat(
Type formatType
)
Object^ GetFormat(
Type^ formatType
)
abstract GetFormat :
formatType:Type -> Object
function GetFormat(
formatType : Type
) : Object
Parameters
- formatType
Type: System. . :: . .Type
An object that specifies the type of format object to return.
Return Value
Type: System. . :: . .Object
An instance of the object specified by formatType, if the IFormatProvider implementation can supply that type of object; otherwise, nullNothingnullptrunita null reference (Nothing in Visual Basic).
Remarks
GetFormat is a callback method that formatting and parsing methods invoke to retrieve information about the format of the input string in parsing operations or the format of the output string in formatting operations. In the formatType parameter, the formatting or parsing method passes the type of object it requires to perform its operation. If the IFormatProvider implementation can supply this formatting or parsing object, it returns that object. If not, it returns null Nothing nullptr unit a null reference (Nothing in Visual Basic) .
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.