PathWrapper.GetDirectoryName Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| Nom | Description |
|---|---|
| GetDirectoryName(String) |
Retourne la chaîne de répertoire en fonction d’un chemin d’accès. Gère le chemin XI. Il s’agit d’un wrapper simple afin qu’il soit Garbage-In|Garbage-out. |
| GetDirectoryName(String, PathType) |
Retourne la chaîne de répertoire en fonction d’un chemin d’accès. Gère le chemin XI. Il s’agit d’un wrapper simple afin qu’il soit Garbage-In|Garbage-out. |
GetDirectoryName(String)
Retourne la chaîne de répertoire en fonction d’un chemin d’accès. Gère le chemin XI. Il s’agit d’un wrapper simple afin qu’il soit Garbage-In|Garbage-out.
public static string GetDirectoryName(string s1);
static member GetDirectoryName : string -> string
Public Shared Function GetDirectoryName (s1 As String) As String
Paramètres
- s1
- String
Chemin d’accès d’origine.
Retours
chaîne de répertoire
S’applique à
GetDirectoryName(String, PathType)
Retourne la chaîne de répertoire en fonction d’un chemin d’accès. Gère le chemin XI. Il s’agit d’un wrapper simple afin qu’il soit Garbage-In|Garbage-out.
public static string GetDirectoryName(string s1, Microsoft.SqlServer.Management.Smo.PathType pathType);
static member GetDirectoryName : string * Microsoft.SqlServer.Management.Smo.PathType -> string
Public Shared Function GetDirectoryName (s1 As String, pathType As PathType) As String
Paramètres
- s1
- String
Chemin d’accès d’origine.
- pathType
- PathType
type de chemin d’accès. Si elle n’est pas spécifiée, la fonction utilise Linux si s1 commence par /, Windows sinon
Retours
chaîne de répertoire