X509Certificate2Collection.Export 메서드

정의

콘텐츠 형식을 기반으로 하는 X.509 인증서 정보를 바이트 배열로 내보냅니다.

오버로드

Export(X509ContentType, String)

암호를 사용하여 X.509 인증서 정보를 바이트 배열로 내보냅니다.

Export(X509ContentType)

X.509 인증서 정보를 바이트 배열로 내보냅니다.

Export(X509ContentType, String)

암호를 사용하여 X.509 인증서 정보를 바이트 배열로 내보냅니다.

public:
 cli::array <System::Byte> ^ Export(System::Security::Cryptography::X509Certificates::X509ContentType contentType, System::String ^ password);
public byte[]? Export (System.Security.Cryptography.X509Certificates.X509ContentType contentType, string? password);
public byte[] Export (System.Security.Cryptography.X509Certificates.X509ContentType contentType, string password);
member this.Export : System.Security.Cryptography.X509Certificates.X509ContentType * string -> byte[]
Public Function Export (contentType As X509ContentType, password As String) As Byte()

매개 변수

contentType
X509ContentType

지원되는 X509ContentType 개체입니다.

password
String

바이트 배열 보호에 사용되는 문자열입니다.

반환

Byte[]

바이트 배열의 X.509 인증서 정보입니다.

예외

이 인증서를 읽을 수 없거나, 콘텐츠가 잘못되었거나, 인증서에 암호가 필요한데 제공된 암호가 잘못되어 프라이빗 키를 내보낼 수 없는 경우

설명

이 메서드는 다음 X509ContentType 형식을 지원합니다.

적용 대상

Export(X509ContentType)

X.509 인증서 정보를 바이트 배열로 내보냅니다.

public:
 cli::array <System::Byte> ^ Export(System::Security::Cryptography::X509Certificates::X509ContentType contentType);
public byte[]? Export (System.Security.Cryptography.X509Certificates.X509ContentType contentType);
public byte[] Export (System.Security.Cryptography.X509Certificates.X509ContentType contentType);
member this.Export : System.Security.Cryptography.X509Certificates.X509ContentType -> byte[]
Public Function Export (contentType As X509ContentType) As Byte()

매개 변수

contentType
X509ContentType

지원되는 X509ContentType 개체입니다.

반환

Byte[]

바이트 배열의 X.509 인증서 정보입니다.

설명

이 메서드는 암호가 필요하지 않은 콘텐츠 형식을 지원합니다.

적용 대상