ALFA.SystemInfo.GetCentralVaultPath C# (CSharp) 메소드

GetCentralVaultPath() 공개 정적인 메소드

Get the filesystem path to the central, shared vault. Note that the server must be using the server vault plugin for this function to work.
public static GetCentralVaultPath ( ) : string
리턴 string
        public static string GetCentralVaultPath()
        {
            string VaultPath = GetNWNX4IniString(
                "AuroraServerVault.ini",
                "Settings",
                "RemoteServerVaultPath",
                "");

            if (String.IsNullOrEmpty(VaultPath))
                return null;

            //
            // Append a trailing path separator if one was not there already,
            // consistent with how the server vault plugin functions
            // internally.
            //

            if (!VaultPath.EndsWith(Path.DirectorySeparatorChar.ToString()) &&
                !VaultPath.EndsWith(Path.AltDirectorySeparatorChar.ToString()))
            {
                VaultPath = VaultPath + Path.DirectorySeparatorChar;
            }

            return VaultPath;
        }