File: System\Security\Cryptography\CspKeyContainerInfo.NotSupported.cs
Web Access
Project: src\src\libraries\System.Security.Cryptography\src\System.Security.Cryptography.csproj (System.Security.Cryptography)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.Runtime.Versioning;
 
namespace System.Security.Cryptography
{
    [SupportedOSPlatform("windows")]
    public sealed class CspKeyContainerInfo
    {
        public CspKeyContainerInfo(CspParameters parameters) { throw GetPlatformNotSupported(); }
        public bool Accessible { get { throw GetPlatformNotSupported(); } }
        public bool Exportable { get { throw GetPlatformNotSupported(); } }
        public bool HardwareDevice { get { throw GetPlatformNotSupported(); } }
        public string KeyContainerName { get { throw GetPlatformNotSupported(); } }
        public KeyNumber KeyNumber { get { throw GetPlatformNotSupported(); } }
        public bool MachineKeyStore { get { throw GetPlatformNotSupported(); } }
        public bool Protected { get { throw GetPlatformNotSupported(); } }
        public string ProviderName { get { throw GetPlatformNotSupported(); } }
        public int ProviderType { get { throw GetPlatformNotSupported(); } }
        public bool RandomlyGenerated { get { throw GetPlatformNotSupported(); } }
        public bool Removable { get { throw GetPlatformNotSupported(); } }
        public string UniqueKeyContainerName { get { throw GetPlatformNotSupported(); } }
 
        private static PlatformNotSupportedException GetPlatformNotSupported()
        {
            return new PlatformNotSupportedException(SR.Format(SR.Cryptography_CAPI_Required, nameof(CspKeyContainerInfo)));
        }
    }
}