Globals::VariableValue Property (String^)

 

Returns or sets the variable with the specified name.

Namespace:   EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

property Object^ default[
	String^ VariableName
] {
	Object^ get(String^ VariableName);
	void set(String^ VariableName, Object^ value);
}

Parameters

VariableName
Type: System::String^

Required. A string representing the name of the variable to retrieve.

Property Value

Type: System::Object^

An object representing the variable.

If you attempt to retrieve a variable that does not exist, the variable is created with an empty value. If you attempt to set a variable that does not exist, it is created with the specified value.

System_CAPS_noteNote

VariableValue name strings cannot contain space, colon (:), or period(.) characters. If a name has any of these characters, you get the error, "Value does not fall within expected range."

No code example is currently available or this language may not be supported.
Return to top
Show: