Delen via


VariablePath Class

Definition

A variable path that you can query the scope and drive of the variable reference.

public ref class VariablePath
public class VariablePath
type VariablePath = class
Public Class VariablePath
Inheritance
VariablePath

Constructors

VariablePath(String)

Constructs a variable path.

Properties

DriveName

The drive name, or null if the path is for a variable. It may also be null for some functions (specifically if this is a FunctionScopedItemLookupPath.)

IsDriveQualified

Returns true if the path specifies a drive other than the variable drive.

IsGlobal

Returns true if the path explicitly specifies 'global:'.

IsLocal

Returns true if the path explicitly specifies 'local:'.

IsPrivate

Returns true if the path explicitly specifies 'private:'.

IsScript

Returns true if the path explicitly specifies 'script:'.

IsUnqualified

Returns true if the path specifies no drive or scope qualifiers.

IsUnscopedVariable

Returns true if the path specifies a variable path with no scope qualifiers.

IsVariable

Returns true if the path defines a variable.

UserPath

Gets the full path including any possibly specified scope and/or drive name.

Methods

ToString()

Helpful for debugging.

Applies to