IDSRefProvider.SetOwner 方法

设置架构名称指定的一个节点。

命名空间:  Microsoft.VisualStudio.Data.Interop
程序集:  Microsoft.VisualStudio.Data(在 Microsoft.VisualStudio.Data.dll 中)

语法

声明
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
)

参数

  • drnidCurr
    类型:System.IntPtr
    [in]所有者名称将设置节点的 DSREFNODEID。
  • bstrOwnerName
    类型:System.String
    [in]包含对指定的节点要设置的所有者名称的 BSTR。

示例

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

.NET Framework 安全性

请参见

参考

IDSRefProvider 接口

Microsoft.VisualStudio.Data.Interop 命名空间

其他资源

数据设计器可扩展性 (DDEX) SDK