Share via


IDSRefConsumer.GetName Method

Retrieves the name of the database object to which the database refers.

Namespace:  Microsoft.VisualStudio.Data.Services.SupportEntities.Interop
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Syntax

'Declaration
Function GetName ( _
    drnidCurr As IntPtr _
) As String
string GetName(
    IntPtr drnidCurr
)
String^ GetName(
    IntPtr drnidCurr
)
abstract GetName : 
        drnidCurr:IntPtr -> string
function GetName(
    drnidCurr : IntPtr
) : String

Parameters

  • drnidCurr
    Type: System.IntPtr

    The DSREFNODEID of the node whose database object name is to be retrieved.

Return Value

Type: System.String
NOERROR if successful; otherwise, an unspecified failure code.

Examples

C++

IDSRefConsumer* m_srpCurrentDSRef;
DSREFNODEID id;
BSTR bstrText;
m_srpCurrentDSRef->GetName(id, &bstrText);

.NET Framework Security

See Also

Reference

IDSRefConsumer Interface

Microsoft.VisualStudio.Data.Services.SupportEntities.Interop Namespace