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된 바이트 수가 포함됩니다.

반환

Boolean

변환에 성공했으면 true이고, 실패했으면 false입니다.

예외

s이(가) null인 경우

적용 대상