AdoDotNetObjectIdentifierConverter.FormatPart Method
By default, adds quotation marks to the identifier part if the format parameter reveals that quotation marks are required. Override to customize the formatting that is added to the identifier part.
Namespace: Microsoft.VisualStudio.Data.Framework.AdoDotNet
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Protected Overrides Function FormatPart ( _
typeName As String, _
identifierPart As Object, _
format As DataObjectIdentifierFormat _
) As String
protected override string FormatPart(
string typeName,
Object identifierPart,
DataObjectIdentifierFormat format
)
protected:
virtual String^ FormatPart(
String^ typeName,
Object^ identifierPart,
DataObjectIdentifierFormat format
) override
abstract FormatPart :
typeName:string *
identifierPart:Object *
format:DataObjectIdentifierFormat -> string
override FormatPart :
typeName:string *
identifierPart:Object *
format:DataObjectIdentifierFormat -> string
protected override function FormatPart(
typeName : String,
identifierPart : Object,
format : DataObjectIdentifierFormat
) : String
Parameters
typeName
Type: System.StringA database object type.
identifierPart
Type: System.ObjectThe name of the identifier part.
format
Type: Microsoft.VisualStudio.Data.Services.DataObjectIdentifierFormatA value of the DataObjectIdentifierFormat enumeration. This value can be used to check whether the string is used for display purposes or requires quotation marks.
Return Value
Type: System.String
The formatted identifier part.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.