Pash.Implementation.ExecutionContext.GetVariable C# (CSharp) Method

GetVariable() private method

private GetVariable ( string name ) : PSVariable
name string
return System.Management.Automation.PSVariable
        internal PSVariable GetVariable(string name)
        {
            if (string.IsNullOrEmpty(name))
                throw new NullReferenceException("Variable name can't be empty.");

            return this.SessionState.PSVariable.Get(name);
        }

Usage Example

Exemplo n.º 1
0
        public object GetVariable(string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw new NullReferenceException("Variable name can't be empty.");
            }

            return(ExecutionContext.GetVariable(name));
        }
All Usage Examples Of Pash.Implementation.ExecutionContext::GetVariable