VsLocalUserDataClass.GetData(Guid, Object) 方法

定義

傳回緩衝區的使用者資料。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 (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

參數

riidKey
Guid

在資料的唯一識別碼。[in] Unique identifier of the data.

pvtData
Object

擴展包含使用者資料之變數的指標。[out] Pointer to a VARIANT containing the user data.

傳回

Int32

如果方法成功,則會傳回, S_OK 否則會傳回錯誤碼。If the method succeeds, it returns S_OK; otherwise, it returns an error code.

實作

適用於