共用方式為


PSCmdlet.GetVariableValue Method

Definition

Overloads

GetVariableValue(String)
GetVariableValue(String, Object)

GetVariableValue(String)

public:
 System::Object ^ GetVariableValue(System::String ^ name);
public:
 Platform::Object ^ GetVariableValue(Platform::String ^ name);
winrt::Windows::Foundation::IInspectable GetVariableValue(std::wstring const & name);
public object GetVariableValue (string name);
member this.GetVariableValue : string -> obj
Public Function GetVariableValue (name As String) As Object

Parameters

name
String

Returns

Applies to

GetVariableValue(String, Object)

public:
 System::Object ^ GetVariableValue(System::String ^ name, System::Object ^ defaultValue);
public:
 Platform::Object ^ GetVariableValue(Platform::String ^ name, Platform::Object ^ defaultValue);
winrt::Windows::Foundation::IInspectable GetVariableValue(std::wstring const & name, winrt::Windows::Foundation::IInspectable const & defaultValue);
public object GetVariableValue (string name, object defaultValue);
member this.GetVariableValue : string * obj -> obj
Public Function GetVariableValue (name As String, defaultValue As Object) As Object

Parameters

name
String
defaultValue
Object

Returns

Applies to