Sdílet prostřednictvím


AttributeInfo.GetArgumentValueAs(IServiceProvider, Int32, Type) Metoda

Definice

Získá argument pro tuto instanci na základě typu a indexu.

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

Parametry

serviceProvider
IServiceProvider

IServiceProviderTato operace usnadňuje tuto operaci.

argumentIndex
Int32

integerIndex požadovaného argumentu v kolekci argumentů

requestedType
Type

TypeArgument.

Návraty

Object

ObjectPřetypování na požadovaný typ.

Výjimky

argumentIndex je mimo rozsah kolekce argumentů.

requestedType je odkaz s hodnotou null ( Nothing v Visual Basic).

Platí pro