ArgumentValidation.AcceptExistingOnly Methode

Definition

Überlädt

Name Beschreibung
AcceptExistingOnly(Argument<DirectoryInfo>)

Konfiguriert ein Argument so, dass nur Werte akzeptiert werden, die einem vorhandenen Verzeichnis entsprechen.

AcceptExistingOnly(Argument<FileInfo>)

Konfiguriert ein Argument so, dass nur Werte akzeptiert werden, die einer vorhandenen Datei entsprechen.

AcceptExistingOnly(Argument<FileSystemInfo>)

Konfiguriert ein Argument so, dass nur Werte akzeptiert werden, die einer vorhandenen Datei oder einem vorhandenen Verzeichnis entsprechen.

AcceptExistingOnly<T>(Argument<T>)

Konfiguriert ein Argument so, dass nur Werte akzeptiert werden, die einer vorhandenen Datei oder Verzeichnisse entsprechen.

AcceptExistingOnly(Argument<DirectoryInfo>)

Quelle:
ArgumentValidation.cs
Quelle:
ArgumentValidation.cs

Konfiguriert ein Argument so, dass nur Werte akzeptiert werden, die einem vorhandenen Verzeichnis entsprechen.

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)

Parameter

argument
Argument<DirectoryInfo>

Das zu konfigurierende Argument.

Gibt zurück

Das konfigurierte Argument.

Gilt für:

AcceptExistingOnly(Argument<FileInfo>)

Quelle:
ArgumentValidation.cs
Quelle:
ArgumentValidation.cs

Konfiguriert ein Argument so, dass nur Werte akzeptiert werden, die einer vorhandenen Datei entsprechen.

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)

Parameter

argument
Argument<FileInfo>

Das zu konfigurierende Argument.

Gibt zurück

Das konfigurierte Argument.

Gilt für:

AcceptExistingOnly(Argument<FileSystemInfo>)

Quelle:
ArgumentValidation.cs
Quelle:
ArgumentValidation.cs

Konfiguriert ein Argument so, dass nur Werte akzeptiert werden, die einer vorhandenen Datei oder einem vorhandenen Verzeichnis entsprechen.

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)

Parameter

argument
Argument<FileSystemInfo>

Das zu konfigurierende Argument.

Gibt zurück

Das konfigurierte Argument.

Gilt für:

AcceptExistingOnly<T>(Argument<T>)

Quelle:
ArgumentValidation.cs
Quelle:
ArgumentValidation.cs

Konfiguriert ein Argument so, dass nur Werte akzeptiert werden, die einer vorhandenen Datei oder Verzeichnisse entsprechen.

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)

Typparameter

T

Parameter

argument
Argument<T>

Das zu konfigurierende Argument.

Gibt zurück

Das konfigurierte Argument.

Gilt für: