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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.