System::Net::WebRequest::RegisterPrefix method

WebRequest::RegisterPrefix method

Registers the WebRequest descendant for the specified URI.

static bool System::Net::WebRequest::RegisterPrefix(String prefix, System::SharedPtr<IWebRequestCreate> creator)
ParameterTypeDescription
prefixStringThe URI or the URI prefix.
creatorSystem::SharedPtr<IWebRequestCreate>Creates new instances of the WebRequest class.

ReturnValue

True when the WebRequest descendant is successfully registered for the specified URI, otherwise false.

See Also