Globals::VariableExists Property (String^)
Visual Studio 2015
Returns whether the specified variable exists.
Assembly: EnvDTE (in EnvDTE.dll)
Parameters
- Name
-
Type:
System::String^
Required. Represents the name of the variable.
Property Value
Type: System::BooleanA 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.
Show: