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
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.