RegisterPrefix()

WebRequest::RegisterPrefix(String, System::SharedPtr<IWebRequestCreate>) method

Registers the WebRequest descendant for the specified URI.

static bool System::Net::WebRequest::RegisterPrefix(String prefix, System::SharedPtr<IWebRequestCreate> creator)

Arguments

ParameterTypeDescription
prefixStringThe URI or the URI prefix.
creatorSystem::SharedPtr<IWebRequestCreate>Creates new instances of the WebRequest class.

Return Value

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

See Also