DocData.SetData Method
Sets the document to a buffer.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)
Syntax
'Declaration
Public Function SetData ( _
ByRef riidKey As Guid, _
vtData As Object _
) As Integer
public int SetData(
ref Guid riidKey,
Object vtData
)
public:
virtual int SetData(
Guid% riidKey,
Object^ vtData
) sealed
abstract SetData :
riidKey:Guid byref *
vtData:Object -> int
override SetData :
riidKey:Guid byref *
vtData:Object -> int
public final function SetData(
riidKey : Guid,
vtData : Object
) : int
Parameters
riidKey
Type: Guid%The ID for the document type.
vtData
Type: ObjectThe document to set.
Return Value
Type: Int32
S_OK if the method succeeds; otherwise, it returns E_FAIL.
Implements
IVsUserData.SetData(Guid%, Object)
Remarks
This method implements the IVsUserData interface.
ShowEncodingDialog calls this method.
.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.