IDSRefProvider.SetProperty Method
Sets the GUID and value of the catalog or database property for a specified node.
Namespace: Microsoft.VisualStudio.Data.Interop
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Sub SetProperty ( _
drnidCurr As IntPtr, _
ByRef guidProp As Guid, _
varPropValue As Object _
)
void SetProperty(
IntPtr drnidCurr,
ref Guid guidProp,
Object varPropValue
)
void SetProperty(
[InAttribute] IntPtr drnidCurr,
[InAttribute] Guid% guidProp,
[InAttribute] Object^ varPropValue
)
abstract SetProperty :
drnidCurr:IntPtr *
guidProp:Guid byref *
varPropValue:Object -> unit
function SetProperty(
drnidCurr : IntPtr,
guidProp : Guid,
varPropValue : Object
)
Parameters
drnidCurr
Type: System.IntPtr[in] DSREFNODEID of the node whose property is to be set.
guidProp
Type: System.Guid%[in] REFGUID of the property to be set for the specified node.
varPropValue
Type: System.Object[in] VARIANT value of the property to be set for the specified node.
Remarks
The Query designer uses the GUID_daVinciQueryDSRefProperty_Qualifier identifier to store the qualifier of the catalog schema table name. There is also a server property that specifies the server.
Examples
IDSRefProvider *pIDSRefProvider;
DSREFNODEID drnid;
REFGUID guidPrivateProperty;
VARIANT varPropValue;
pIDSRefProvider->SetProperty(drnid,guidPrivateProperty,varPropValue);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.Data.Interop Namespace