ParseArgument<T> Delegate
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.
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
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.