镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

M_CommandLine_Core_SpecificationPropertyExtensions_Validate

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

SpecificationPropertyExtensions.Validate Method

Namespace: CommandLine.Core
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

public static IEnumerable<Error> Validate(
	this IEnumerable<SpecificationProperty> specProps,
	IEnumerable<Func<IEnumerable<SpecificationProperty>, IEnumerable<Error>>> rules
)

VB

<ExtensionAttribute>
Public Shared Function Validate ( 
	specProps As IEnumerable(Of SpecificationProperty),
	rules As IEnumerable(Of Func(Of IEnumerable(Of SpecificationProperty), IEnumerable(Of Error)))
) As IEnumerable(Of Error)

C++

public:
[ExtensionAttribute]
static IEnumerable<Error^>^ Validate(
	IEnumerable<SpecificationProperty^>^ specProps, 
	IEnumerable<Func<IEnumerable<SpecificationProperty^>^, IEnumerable<Error^>^>^>^ rules
)

F#

[<ExtensionAttribute>]
static member Validate : 
        specProps : IEnumerable<SpecificationProperty> * 
        rules : IEnumerable<Func<IEnumerable<SpecificationProperty>, IEnumerable<Error>>> -> IEnumerable<Error> 

Parameters

 

specProps
Type: System.Collections.Generic.IEnumerable(SpecificationProperty)
rules
Type: System.Collections.Generic.IEnumerable(Func(IEnumerable(SpecificationProperty), IEnumerable(Error)))

Return Value

Type: IEnumerable(Error)

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable(SpecificationProperty). When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

SpecificationPropertyExtensions Class
CommandLine.Core Namespace

Clone this wiki locally