共用方式為


IDSRefProvider.SetType 方法

將節點的型別指定節點參考資料庫物件的型別。

命名空間:  Microsoft.VisualStudio.Data.Interop
組件:  Microsoft.VisualStudio.Data (在 Microsoft.VisualStudio.Data.dll 中)

語法

'宣告
Sub SetType ( _
    drnidCurr As IntPtr, _
    grfType As __DSREFTYPE _
)
void SetType(
    IntPtr drnidCurr,
    __DSREFTYPE grfType
)
void SetType(
    [InAttribute] IntPtr drnidCurr, 
    [InAttribute] __DSREFTYPE grfType
)
abstract SetType : 
        drnidCurr:IntPtr * 
        grfType:__DSREFTYPE -> unit
function SetType(
    drnidCurr : IntPtr, 
    grfType : __DSREFTYPE
)

參數

  • drnidCurr
    類型:IntPtr

    [in] 型別要設定節點的 DSREFNODEID 。

範例

IDSRefProvider *pIDSRefProvider;
DSREFNODEID drnid;
DSREFTYPE grfDSRefType;
pIDSRefProvider->SetType(drnid, grfDSRefType);

.NET Framework 安全性

請參閱

參考

IDSRefProvider 介面

Microsoft.VisualStudio.Data.Interop 命名空間

其他資源

資料設計工具擴充性 (DDEX) SDK