次の方法で共有


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.

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

See Also

Reference

DocData Class

Microsoft.VisualStudio.Modeling.Shell Namespace