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
'宣言
Protected Overrides Function FormatPart ( _
typeName As String, _
identifierPart As Object, _
format As DataObjectIdentifierFormat _
) As String
'使用
Dim typeName As String
Dim identifierPart As Object
Dim format As DataObjectIdentifierFormat
Dim returnValue As String
returnValue = Me.FormatPart(typeName, _
identifierPart, format)
protected override string FormatPart(
string typeName,
Object identifierPart,
DataObjectIdentifierFormat format
)
protected:
virtual String^ FormatPart(
String^ typeName,
Object^ identifierPart,
DataObjectIdentifierFormat format
) override
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.
Permissions
- 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.
See Also
Reference
AdoDotNetObjectIdentifierConverter Class