IDSRefProvider.SetOwner Method

Sets the schema name for a specified node.

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

Syntax

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

Parameters

  • drnidCurr
    Type: System.IntPtr

    [in] DSREFNODEID of the node whose owner name is to be set.

  • bstrOwnerName
    Type: System.String

    [in] 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.Interop Namespace

Other Resources

Data Designer Extensibility (DDEX) SDK