Share via


IDSRefProvider.SetOwner Method

Sets the schema name for a specified node.

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

Syntax

'Declaration
Sub SetOwner ( _
    drnidCurr As IntPtr, _
    bstrOwnerName As String _
)
void SetOwner(
    IntPtr drnidCurr,
    string bstrOwnerName
)
void SetOwner(
    IntPtr drnidCurr, 
    String^ bstrOwnerName
)
abstract SetOwner : 
        drnidCurr:IntPtr * 
        bstrOwnerName:string -> unit
function SetOwner(
    drnidCurr : IntPtr, 
    bstrOwnerName : String
)

Parameters

  • drnidCurr
    Type: System.IntPtr

    The DSREFNODEID of the node whose owner name is to be set.

  • bstrOwnerName
    Type: System.String

    A BSTR that contains the owner name to be set for the specified node.

Examples

IDSRefProvider *pIDSRefProvider;
DSREFNODEID drnid;
BSTR dsrnOwnerName;
pIDSRefProvider->SetOwner(drnid, dsrnOwnerName);

.NET Framework Security

See Also

Reference

IDSRefProvider Interface

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

Other Resources

Data Designer Extensibility (DDEX) SDK