IDSRefConsumer.GetOwner Method

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

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

Syntax

'宣言
Function GetOwner ( _
    drnidCurr As IntPtr _
) As String
'使用
Dim instance As IDSRefConsumer
Dim drnidCurr As IntPtr
Dim returnValue As String

returnValue = instance.GetOwner(drnidCurr)
string GetOwner(
    IntPtr drnidCurr
)
String^ GetOwner(
    [InAttribute] IntPtr drnidCurr
)
function GetOwner(
    drnidCurr : IntPtr
) : String

Parameters

  • drnidCurr
    Type: System.IntPtr

    [in] DSREFNODEID of the node whose owner schema is to be retrieved.

Return Value

Type: System.String

Returns NOERROR if successful. Otherwise, it returns an unspecified failure code.

Examples

IDSRefConsumer* m_srpCurrentDSRef;
DSREFNODEID id;
BSTR bstrOwner = NULL;
m_srpCurrentDSRef->GetOwner(id, &bstrOwner);

Permissions

See Also

Reference

IDSRefConsumer Interface

IDSRefConsumer Members

Microsoft.VisualStudio.Data.Interop Namespace