Convert.TryFromBase64String(String, Span<Byte>, Int32) 메서드

정의

base-64 숫자로 인코딩된 지정된 문자열 표현을 부호 없는 8비트 정수 범위로 변환하려고 시도합니다.

public:
 static bool TryFromBase64String(System::String ^ s, Span<System::Byte> bytes, [Runtime::InteropServices::Out] int % bytesWritten);
public static bool TryFromBase64String(string s, Span<byte> bytes, out int bytesWritten);
static member TryFromBase64String : string * Span<byte> * int -> bool
Public Shared Function TryFromBase64String (s As String, bytes As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

매개 변수

s
String

base-64 숫자로 인코딩된 문자열 표현입니다.

bytes
Span<Byte>

변환된 8비트 부호 없는 정수 작성 범위입니다. 이 메서드가 반환 false될 때 범위는 수정되지 않은 상태로 유지되거나 마지막 유효한 문자까지의 s불완전한 변환을 포함합니다.

bytesWritten
Int32

이 메서드가 반환되면 에 기록 bytes된 바이트 수가 포함됩니다.

반품

변환에 성공하면

예외

snull입니다.

적용 대상