TryParse()

IPAddress::TryParse(String, System::SharedPtr<IPAddress>&) method

Tries to convert a passed string to an instance of the IPAddress class.

static bool System::Net::IPAddress::TryParse(String ipString, System::SharedPtr<IPAddress> &address)

Arguments

ParameterTypeDescription
ipStringStringA string to parse.
addressSystem::SharedPtr<IPAddress>&An instance where a parsed object will be assigned.

Return Value

True when the parsing is successfully done, otherwise false.

See Also