IPAddress.TryFormat 메서드

정의

오버로드

Name Description
TryFormat(Span<Char>, Int32)

현재 IP 주소의 형식을 제공된 범위로 지정하려고 시도합니다.

TryFormat(Span<Byte>, Int32)

현재 IP 주소의 형식을 제공된 범위로 지정하려고 시도합니다.

TryFormat(Span<Char>, Int32)

Source:
IPAddress.cs
Source:
IPAddress.cs
Source:
IPAddress.cs
Source:
IPAddress.cs
Source:
IPAddress.cs

현재 IP 주소의 형식을 제공된 범위로 지정하려고 시도합니다.

public:
 bool TryFormat(Span<char> destination, [Runtime::InteropServices::Out] int % charsWritten);
public bool TryFormat(Span<char> destination, out int charsWritten);
member this.TryFormat : Span<char> * int -> bool
Public Function TryFormat (destination As Span(Of Char), ByRef charsWritten As Integer) As Boolean

매개 변수

destination
Span<Char>

이 메서드가 반환되면 IP 주소는 문자 범위로 사용됩니다.

charsWritten
Int32

이 메서드가 반환되면 범위에 기록된 문자 수입니다.

반품

서식이 성공하면

적용 대상

TryFormat(Span<Byte>, Int32)

Source:
IPAddress.cs
Source:
IPAddress.cs
Source:
IPAddress.cs
Source:
IPAddress.cs

현재 IP 주소의 형식을 제공된 범위로 지정하려고 시도합니다.

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

매개 변수

utf8Destination
Span<Byte>

IP 주소를 UTF-8 바이트의 범위로 쓸 범위입니다.

bytesWritten
Int32

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

반품

서식이 성공하면

적용 대상