VsUserDataClass.SetData Method
Sets user data to a buffer.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'宣告
Public Overridable Function SetData ( _
ByRef riidKey As Guid, _
vtData As Object _
) As Integer
'用途
Dim instance As VsUserDataClass
Dim riidKey As Guid
Dim vtData As Object
Dim returnValue As Integer
returnValue = instance.SetData(riidKey, _
vtData)
public virtual int SetData(
ref Guid riidKey,
Object vtData
)
public:
virtual int SetData(
[InAttribute] Guid% riidKey,
[InAttribute] Object^ vtData
)
abstract SetData :
riidKey:Guid byref *
vtData:Object -> int
override SetData :
riidKey:Guid byref *
vtData:Object -> int
public function SetData(
riidKey : Guid,
vtData : Object
) : int
Parameters
- riidKey
Type: System.Guid%
[in] Unique identifier of the data.
- vtData
Type: System.Object
[in] Data to be set.
Return Value
Type: System.Int32
Implements
IVsUserData.SetData(Guid%, Object)
.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.