IDSRefConsumer.GetOwner Method
Retrieves the schema 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 GetOwner ( _
drnidCurr As IntPtr _
) As String
string GetOwner(
IntPtr drnidCurr
)
String^ GetOwner(
IntPtr drnidCurr
)
abstract GetOwner :
drnidCurr:IntPtr -> string
function GetOwner(
drnidCurr : IntPtr
) : String
Parameters
drnidCurr
Type: System.IntPtrThe DSREFNODEID of the node whose owner schema 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 bstrOwner = NULL;
m_srpCurrentDSRef->GetOwner(id, &bstrOwner);
.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.
See Also
Reference
Microsoft.VisualStudio.Data.Services.SupportEntities.Interop Namespace