ParseArgument<T> Delegate
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);
C#
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
- 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.- result
- ArgumentResult
The argument result.
T
The parsed value.
Validation errors can be returned by setting ErrorMessage.
製品 | バージョン |
---|---|
.NET | 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Standard | 2.0 (package-provided) |
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。