다음을 통해 공유


Pkcs8PrivateKeyInfo.TryEncode(Span<Byte>, Int32) 메서드

정의

이 인스턴스의 속성 데이터를 PKCS#8 PrivateKeyInfo로 인코딩하고 그 결과를 제공된 버퍼에 씁니다.

public:
 bool TryEncode(Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public bool TryEncode (Span<byte> destination, out int bytesWritten);
member this.TryEncode : Span<byte> * int -> bool
Public Function TryEncode (destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

매개 변수

destination
Span<Byte>

PKCS # 8 PrivateKeyInfo 데이터를 받을 바이트 범위입니다.

bytesWritten
Int32

이 메서드가 반환될 때 destination에 쓴 바이트 수를 나타내는 값을 포함합니다. 이 매개 변수는 초기화되지 않은 것으로 처리됩니다.

반환

destination이 출력을 받을 충분한 크기이면 true, 아니면 false입니다.

적용 대상

추가 정보