Mono.Btls.MonoBtlsX509StoreManager.GetStorePath C# (CSharp) Méthode

GetStorePath() public static méthode

public static GetStorePath ( MonoBtlsX509StoreType type ) : string
type MonoBtlsX509StoreType
Résultat string
		public static string GetStorePath (MonoBtlsX509StoreType type)
		{
#if ANDROID
			throw new NotSupportedException ();
#else
			Initialize ();
			switch (type) {
			case MonoBtlsX509StoreType.MachineTrustedRoots:
				return machineTrustedRootPath;
			case MonoBtlsX509StoreType.MachineIntermediateCA:
				return machineIntermediateCAPath;
			case MonoBtlsX509StoreType.MachineUntrusted:
				return machineUntrustedPath;
			case MonoBtlsX509StoreType.UserTrustedRoots:
				return userTrustedRootPath;
			case MonoBtlsX509StoreType.UserIntermediateCA:
				return userIntermediateCAPath;
			case MonoBtlsX509StoreType.UserUntrusted:
				return userUntrustedPath;
			default:
				throw new NotSupportedException ();
			}
#endif
		}
	}

Usage Example

Exemple #1
0
        public static string GetSystemStoreLocation()
        {
#if MONODROID
            return("/system/etc/security/cacerts");
#else
            return(MonoBtlsX509StoreManager.GetStorePath(MonoBtlsX509StoreType.MachineTrustedRoots));
#endif
        }
All Usage Examples Of Mono.Btls.MonoBtlsX509StoreManager::GetStorePath