共用方式為


IVsGlobalsCallback2.WriteVariablesToData(String, Object) Method

Definition

Writes the name and value of a solution global. How and where the method writes the name and value pair is implementation dependent.

public:
 int WriteVariablesToData(System::String ^ pVariableName, System::Object ^ % varData);
int WriteVariablesToData(std::wstring const & pVariableName, winrt::Windows::Foundation::IInspectable const & & varData);
public int WriteVariablesToData (string pVariableName, ref object varData);
abstract member WriteVariablesToData : string * obj -> int
Public Function WriteVariablesToData (pVariableName As String, ByRef varData As Object) As Integer

Parameters

pVariableName
String

[in] Pointer to a string containing the variable's name.

varData
Object

[in] Pointer to a VARIANT containing the variable's value.

Returns

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

Applies to