AttributeInfo.GetArgumentValueAs(IServiceProvider, Int32, Type) Método

Definição

Percebe o argumento deste caso, com base no tipo e índice.

public:
 System::Object ^ GetArgumentValueAs(IServiceProvider ^ serviceProvider, int argumentIndex, Type ^ requestedType);
public object GetArgumentValueAs(IServiceProvider serviceProvider, int argumentIndex, Type requestedType);
member this.GetArgumentValueAs : IServiceProvider * int * Type -> obj
Public Function GetArgumentValueAs (serviceProvider As IServiceProvider, argumentIndex As Integer, requestedType As Type) As Object

Parâmetros

serviceProvider
IServiceProvider

A IServiceProvider ajudar nesta operação.

argumentIndex
Int32

O integer índice do argumento solicitado na coleção de argumentos.

requestedType
Type

O Type tema da discussão.

Devoluções

Um Object elenco para o tipo pedido.

Exceções

argumentIndex está fora do alcance da coleção de argumentos.

requestedType é uma referência nula (Nothing em Visual Basic).

Aplica-se a