Share via


VsUserDataClass.GetData(Guid, Object) Method

Definition

Returns user data from a buffer.

public:
 virtual int GetData(Guid % riidKey, [Runtime::InteropServices::Out] System::Object ^ % pvtData) = Microsoft::VisualStudio::TextManager::Interop::IVsUserData::GetData;
public:
 virtual int GetData(Guid % riidKey, [Runtime::InteropServices::Out] System::Object ^ % pvtData);
public virtual int GetData (ref Guid riidKey, out object pvtData);
abstract member GetData : Guid * obj -> int
override this.GetData : Guid * obj -> int
Public Overridable Function GetData (ByRef riidKey As Guid, ByRef pvtData As Object) As Integer

Parameters

riidKey
Guid

[in] Unique identifier of the data.

pvtData
Object

[out] Pointer to a VARIANT containing the user data.

Returns

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

Implements

Applies to