DocData.SetData Method
Sets the document to a buffer.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
声明
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: System.Guid%
The ID for the document type.
- vtData
Type: System.Object
The document to set.
Return Value
Type: System.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.