Share via


IDSRefProvider.SetType Method

Sets the type of a node to specify the type of database object that the node references.

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

Syntax

'Declaration
Sub SetType ( _
    drnidCurr As IntPtr, _
    grfType As __DSREFTYPE _
)
void SetType(
    IntPtr drnidCurr,
    __DSREFTYPE grfType
)
void SetType(
    IntPtr drnidCurr, 
    __DSREFTYPE grfType
)
abstract SetType : 
        drnidCurr:IntPtr * 
        grfType:__DSREFTYPE -> unit
function SetType(
    drnidCurr : IntPtr, 
    grfType : __DSREFTYPE
)

Parameters

  • drnidCurr
    Type: System.IntPtr

    The DSREFNODEID of the node whose type is to be set.

Examples

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

.NET Framework Security

See Also

Reference

IDSRefProvider Interface

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

Other Resources

Data Designer Extensibility (DDEX) SDK