Globals::VariableExists Property (String^)

 

Returns whether the specified variable exists.

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

property bool default[
	String^ Name
] {
	bool get(String^ Name);
}

Parameters

Name
Type: System::String^

Required. Represents the name of the variable.

Property Value

Type: System::Boolean

A Boolean value indicating true if the variable exists, false if it does not.

If you attempt to check the value of a variable with the VariableValue property and the variable does not exist, a new variable of that name is created with a null value. To distinguish between an empty variable and a nonexistent variable, use the VariableExists property.

Variables:

  • Have no limit as to length, other than system limitations.

  • Are case-insensitive.

  • Can contain any characters permitted by the system.

  • Are restricted to simple data types such as strings and numbers. No SafeArrays or IDispatch interfaces can be used.

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