AttributeInfo.GetArgumentValueAs(IServiceProvider, Int32, Type) Method
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.
Gets the argument for this instance, based on type and index.
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
- serviceProvider
- IServiceProvider
The IServiceProvider helping this operation.
- argumentIndex
- Int32
The integer
index of the requested argument in the collection of arguments.
An Object cast to the requested type.
argumentIndex
is out of range of the argument collection.
requestedType
is a null reference (Nothing
in Visual Basic).
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: