Léigh i mBéarla Cuir in eagar

Comhroinn trí


IPNetwork.TryParse Method

Definition

Overloads

TryParse(ReadOnlySpan<Byte>, IPNetwork)
TryParse(String, IPNetwork)

Converts the specified CIDR string to an IPNetwork instance and returns a value indicating whether the conversion succeeded.

TryParse(ReadOnlySpan<Char>, IPNetwork)

Converts the specified CIDR character span to an IPNetwork instance and returns a value indicating whether the conversion succeeded.

TryParse(ReadOnlySpan<Byte>, IPNetwork)

C#
public static bool TryParse(ReadOnlySpan<byte> utf8Text, out System.Net.IPNetwork result);

Parameters

utf8Text
ReadOnlySpan<Byte>
result
IPNetwork

Returns

Applies to

.NET 10
Táirge Leaganacha
.NET 10

TryParse(String, IPNetwork)

Source:
IPNetwork.cs
Source:
IPNetwork.cs

Converts the specified CIDR string to an IPNetwork instance and returns a value indicating whether the conversion succeeded.

C#
public static bool TryParse(string? s, out System.Net.IPNetwork result);

Parameters

s
String

A String that defines an IP network in CIDR notation.

result
IPNetwork

When the method returns, contains an IPNetwork instance if the conversion succeeds.

Returns

true if the conversion was successful; otherwise, false.

Applies to

.NET 10 agus leaganacha eile
Táirge Leaganacha
.NET 8, 9, 10

TryParse(ReadOnlySpan<Char>, IPNetwork)

Source:
IPNetwork.cs
Source:
IPNetwork.cs

Converts the specified CIDR character span to an IPNetwork instance and returns a value indicating whether the conversion succeeded.

C#
public static bool TryParse(ReadOnlySpan<char> s, out System.Net.IPNetwork result);

Parameters

s
ReadOnlySpan<Char>

A String that defines an IP network in CIDR notation.

result
IPNetwork

When the method returns, contains an IPNetwork instance if the conversion succeeds.

Returns

true if the conversion was successful; otherwise, false.

Applies to

.NET 10 agus leaganacha eile
Táirge Leaganacha
.NET 8, 9, 10