DiagramDocView.GetProperty Method
Gets the properties that are assigned to an element in the model.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'Declaración
Public Function GetProperty ( _
propid As UInteger, _
<OutAttribute> ByRef pvar As Object _
) As Integer
public int GetProperty(
uint propid,
out Object pvar
)
public:
virtual int GetProperty(
unsigned int propid,
[OutAttribute] Object^% pvar
) sealed
abstract GetProperty :
propid:uint32 *
pvar:Object byref -> int
override GetProperty :
propid:uint32 *
pvar:Object byref -> int
public final function GetProperty(
propid : uint,
pvar : Object
) : int
Parameters
- propid
Type: System.UInt32
The ID that is assigned to the property.
- pvar
Type: System.Object%
The VARIANT that contains the property value.
Return Value
Type: System.Int32
If VSFTPROPID_DocName is selected, S_OK. Otherwise, E_NOTIMPL.
Implements
IVsFindTarget.GetProperty(UInt32, Object%)
Remarks
Only VSFTPROPID_DocName is supported.
This method is part of the IVsFindTarget interface. You can use all options for this interface except for Find and Find/Replace.
.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.