共用方式為


IVsPropertyBag.SetValue(String, Object) Method

Definition

Adds or updates a named property in the property bag.

public:
 void SetValue(System::String ^ szName, System::Object ^ % pVarValue);
void SetValue(std::wstring const & szName, winrt::Windows::Foundation::IInspectable const & & pVarValue);
public void SetValue (string szName, ref object pVarValue);
abstract member SetValue : string * obj -> unit
Public Sub SetValue (szName As String, ByRef pVarValue As Object)

Parameters

szName
String

[in] Name of the property.

pVarValue
Object

[in] The new or updated value for the property.

Applies to