ActivationContext<T>.GetParameter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Gets the parameter.
Overloads
GetParameter(String) |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Gets the parameter by name. |
GetParameter(String, Type) |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Gets the parameter by name. |
GetParameter<V>(String) |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Gets the parameter by name. |
GetParameter(String)
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Gets the parameter by name.
public:
virtual System::Object ^ GetParameter(System::String ^ name);
public virtual object GetParameter (string name);
abstract member GetParameter : string -> obj
override this.GetParameter : string -> obj
Public Overridable Function GetParameter (name As String) As Object
Parameters
- name
- String
The name of the parameter to get.
Returns
The requested parameter.
Exceptions
The name
parameter is a null reference (Nothing in Visual Basic) or empty.
The name
parameter does not contain a valid name.
Applies to
GetParameter(String, Type)
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Gets the parameter by name.
public:
virtual System::Object ^ GetParameter(System::String ^ name, Type ^ type);
public virtual object GetParameter (string name, Type type);
abstract member GetParameter : string * Type -> obj
override this.GetParameter : string * Type -> obj
Public Overridable Function GetParameter (name As String, type As Type) As Object
Parameters
- name
- String
The name of the requested parameter.
- type
- Type
The type to cast the parameter as.
Returns
The requested parameter.
Applies to
GetParameter<V>(String)
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Gets the parameter by name.
public:
generic <typename V>
virtual V GetParameter(System::String ^ name);
public virtual V GetParameter<V> (string name);
abstract member GetParameter : string -> 'V
override this.GetParameter : string -> 'V
Public Overridable Function GetParameter(Of V) (name As String) As V
Type Parameters
- V
The type of object the parameter is.
Parameters
- name
- String
The name of the requested parameter.
Returns
The parameter.