Gets the document data from a buffer.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'Declaration
Public Function GetData ( _
ByRef riidKey As Guid, _
<OutAttribute> ByRef pvtData As Object _
) As Integer
'Usage
Dim instance As DocData
Dim riidKey As Guid
Dim pvtData As Object
Dim returnValue As Integer
returnValue = instance.GetData(riidKey, _
pvtData)
public int GetData(
ref Guid riidKey,
out Object pvtData
)
public:
virtual int GetData(
Guid% riidKey,
[OutAttribute] Object^% pvtData
) sealed
public final function GetData(
riidKey : Guid,
pvtData : Object
) : int
Parameters
riidKey
Type: System.Guid%The ID that is assigned to the document data.
pvtData
Type: System.Object%The VARIANT that contains the document data.
Return Value
Type: System.Int32
S_OK if the document is retrieved from a buffer; otherwise, E_FAIL.
Implements
IVsUserData.GetData(Guid%, Object%)
Remarks
This method implements the IVsUserData interface.
.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.