Breyta

Deila með


ParseArgument<T> Delegate

Definition

Performs custom parsing of an argument.

generic <typename T>
public delegate T ParseArgument(ArgumentResult ^ result);
public delegate T ParseArgument<out T>(ArgumentResult result);
type ParseArgument<'T> = delegate of ArgumentResult -> 'T
Public Delegate Function ParseArgument(Of Out T)(result As ArgumentResult) As T 

Type Parameters

T

The type which the argument is to be parsed as.

This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.

Parameters

result
ArgumentResult

The argument result.

Return Value

T

The parsed value.

Remarks

Validation errors can be returned by setting ErrorMessage.

Applies to