Udostępnij za pośrednictwem


VsLocalUserDataClass.SetData(Guid, Object) Method

Definition

Set user data to a buffer.

public:
 virtual int SetData(Guid % riidKey, System::Object ^ vtData) = Microsoft::VisualStudio::TextManager::Interop::IVsUserData::SetData;
public:
 virtual int SetData(Guid % riidKey, System::Object ^ vtData);
public virtual int SetData (ref Guid riidKey, object vtData);
abstract member SetData : Guid * obj -> int
override this.SetData : Guid * obj -> int
Public Overridable Function SetData (ByRef riidKey As Guid, vtData As Object) As Integer

Parameters

riidKey
Guid

[in] Unique identifier of the data.

vtData
Object

[in] Data to be set.

Returns

If the method succeeds, it returns S_OK; otherwise, it returns an error code.

Implements

Applies to