AdoDotNetConnectionProperties.ICustomTypeDescriptor.GetComponentName Method

Retrieves the name of the specified object.

Namespace:  Microsoft.VisualStudio.Data.AdoDotNet
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'宣言
Private Function GetComponentName As String
    Implements ICustomTypeDescriptor.GetComponentName
'使用
Dim instance As AdoDotNetConnectionProperties
Dim returnValue As String

returnValue = CType(instance, ICustomTypeDescriptor).GetComponentName()
string ICustomTypeDescriptor.GetComponentName()
private:
virtual String^ GetComponentName() sealed = ICustomTypeDescriptor::GetComponentName
JScript does not support explicit interface implementations.

Return Value

Type: System.String

Returns the name of the object, or a null reference (Nothing in Visual Basic) if the object does not have a name.

Implements

ICustomTypeDescriptor.GetComponentName()

Remarks

In cases where the method returns a null reference (Nothing in Visual Basic), use the default name.

This method provides an implementation of the GetComponentName method. For more information see the GetComponentName method in the .NET Framework class library.

Permissions

See Also

Reference

AdoDotNetConnectionProperties Class

AdoDotNetConnectionProperties Members

Microsoft.VisualStudio.Data.AdoDotNet Namespace