System.Net.WebRequestPrefixElement.WebRequestPrefixElement C# (CSharp) Method

WebRequestPrefixElement() public method

public WebRequestPrefixElement ( string P, Type creatorType ) : System.IO
P string
creatorType Type
return System.IO
        public WebRequestPrefixElement(string P, Type creatorType) {
            // verify that its of the proper type of IWebRequestCreate
            if (!typeof(IWebRequestCreate).IsAssignableFrom(creatorType))
            {
                throw new InvalidCastException(SR.GetString(SR.net_invalid_cast,
                                                                creatorType.AssemblyQualifiedName,
                                                                "IWebRequestCreate"));
            }

            Prefix = P;
            this.creatorType = creatorType;
        }

Same methods

WebRequestPrefixElement::WebRequestPrefixElement ( string P, IWebRequestCreate C ) : System.IO
WebRequestPrefixElement