ArgumentValidation.AcceptExistingOnly Methode

Definitie

Overloads

Name Description
AcceptExistingOnly(Argument<DirectoryInfo>)

Hiermee configureert u een argument om alleen waarden te accepteren die overeenkomen met een bestaande map.

AcceptExistingOnly(Argument<FileInfo>)

Hiermee configureert u een argument om alleen waarden te accepteren die overeenkomen met een bestaand bestand.

AcceptExistingOnly(Argument<FileSystemInfo>)

Hiermee configureert u een argument om alleen waarden te accepteren die overeenkomen met een bestaand bestand of een bestaande map.

AcceptExistingOnly<T>(Argument<T>)

Hiermee configureert u een argument om alleen waarden te accepteren die overeenkomen met een bestaande bestanden of mappen.

AcceptExistingOnly(Argument<DirectoryInfo>)

Bron:
ArgumentValidation.cs
Bron:
ArgumentValidation.cs

Hiermee configureert u een argument om alleen waarden te accepteren die overeenkomen met een bestaande map.

public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Argument<System::IO::DirectoryInfo ^> ^ AcceptExistingOnly(System::CommandLine::Argument<System::IO::DirectoryInfo ^> ^ argument);
public static System.CommandLine.Argument<System.IO.DirectoryInfo> AcceptExistingOnly(this System.CommandLine.Argument<System.IO.DirectoryInfo> argument);
static member AcceptExistingOnly : System.CommandLine.Argument<System.IO.DirectoryInfo> -> System.CommandLine.Argument<System.IO.DirectoryInfo>
<Extension()>
Public Function AcceptExistingOnly (argument As Argument(Of DirectoryInfo)) As Argument(Of DirectoryInfo)

Parameters

argument
Argument<DirectoryInfo>

Het argument dat moet worden geconfigureerd.

Retouren

Het geconfigureerde argument.

Van toepassing op

AcceptExistingOnly(Argument<FileInfo>)

Bron:
ArgumentValidation.cs
Bron:
ArgumentValidation.cs

Hiermee configureert u een argument om alleen waarden te accepteren die overeenkomen met een bestaand bestand.

public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Argument<System::IO::FileInfo ^> ^ AcceptExistingOnly(System::CommandLine::Argument<System::IO::FileInfo ^> ^ argument);
public static System.CommandLine.Argument<System.IO.FileInfo> AcceptExistingOnly(this System.CommandLine.Argument<System.IO.FileInfo> argument);
static member AcceptExistingOnly : System.CommandLine.Argument<System.IO.FileInfo> -> System.CommandLine.Argument<System.IO.FileInfo>
<Extension()>
Public Function AcceptExistingOnly (argument As Argument(Of FileInfo)) As Argument(Of FileInfo)

Parameters

argument
Argument<FileInfo>

Het argument dat moet worden geconfigureerd.

Retouren

Het geconfigureerde argument.

Van toepassing op

AcceptExistingOnly(Argument<FileSystemInfo>)

Bron:
ArgumentValidation.cs
Bron:
ArgumentValidation.cs

Hiermee configureert u een argument om alleen waarden te accepteren die overeenkomen met een bestaand bestand of een bestaande map.

public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Argument<System::IO::FileSystemInfo ^> ^ AcceptExistingOnly(System::CommandLine::Argument<System::IO::FileSystemInfo ^> ^ argument);
public static System.CommandLine.Argument<System.IO.FileSystemInfo> AcceptExistingOnly(this System.CommandLine.Argument<System.IO.FileSystemInfo> argument);
static member AcceptExistingOnly : System.CommandLine.Argument<System.IO.FileSystemInfo> -> System.CommandLine.Argument<System.IO.FileSystemInfo>
<Extension()>
Public Function AcceptExistingOnly (argument As Argument(Of FileSystemInfo)) As Argument(Of FileSystemInfo)

Parameters

argument
Argument<FileSystemInfo>

Het argument dat moet worden geconfigureerd.

Retouren

Het geconfigureerde argument.

Van toepassing op

AcceptExistingOnly<T>(Argument<T>)

Bron:
ArgumentValidation.cs
Bron:
ArgumentValidation.cs

Hiermee configureert u een argument om alleen waarden te accepteren die overeenkomen met een bestaande bestanden of mappen.

public:
generic <typename T>
 where T : System::Collections::Generic::IEnumerable<System::IO::FileSystemInfo ^>[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Argument<T> ^ AcceptExistingOnly(System::CommandLine::Argument<T> ^ argument);
public static System.CommandLine.Argument<T> AcceptExistingOnly<T>(this System.CommandLine.Argument<T> argument) where T : System.Collections.Generic.IEnumerable<System.IO.FileSystemInfo>;
static member AcceptExistingOnly : System.CommandLine.Argument<#seq<System.IO.FileSystemInfo>> -> System.CommandLine.Argument<#seq<System.IO.FileSystemInfo>>
<Extension()>
Public Function AcceptExistingOnly(Of T As IEnumerable(Of FileSystemInfo)) (argument As Argument(Of T)) As Argument(Of T)

Type parameters

T

Parameters

argument
Argument<T>

Het argument dat moet worden geconfigureerd.

Retouren

Het geconfigureerde argument.

Van toepassing op