TCnWebProxy Class

Contains HTTP proxy settings for the WebRequest class.

Namespace: CNClrLib.Component.WebProxy
TComponent
  CNClrLib.Control.Base.TClrBaseComponent
    CNClrLib.Component.WebProxy.TCnWebProxy
type
 TCnWebProxy = class(TClrBaseComponent)
 end;

The TCnWebProxy type exposes the following members.

Show:
 NameDescription
Create(TComponent)

Creates and initializes a TCnWebProxy instance. (Overrides TClrBaseComponent.Create(TComponent).)

Destroy

Frees the resources allocated with a TCnWebProxy instance. (Overrides TClrBaseComponent.Destroy.)

Top
Show:
 NameDescription
Address

Gets or sets the address of the proxy server.

BypassAddressList

Gets or sets an array of addresses that do not use the proxy server.

BypassArrayList

Gets a list of addresses that do not use the proxy server.

BypassProxyOnLocal

Gets or sets a value that indicates whether to bypass the proxy server for local addresses.

Credentials

Gets or sets the credentials to submit to the proxy server for authentication.

DefaultClrObject

Get the common language runtime object interface for this component. (Inherited from TClrBaseComponent.)

Password

Gets or sets the password for the user name associated with the credentials.

UseDefaultCredentials

Gets or sets a Boolean value that controls whether the DefaultCredentials are sent with requests.

UserName

Gets or sets the user name associated with the credentials.

WebProxy

Gets the .Net WebProxy object as interface.

Top
Show:
 NameDescription
Dispose

Releases the resources used by the Component. (Inherited from TClrBaseComponent.)

DoGetDefaultClrObject

Represents method DoGetDefaultClrObject. (Overrides TClrBaseComponent.DoGetDefaultClrObject.)

DoGetDotNetBaseComponent

Represents method DoGetDotNetBaseComponent. (Overrides TClrBaseComponent.DoGetDotNetBaseComponent.)

DoOnBypassArrayChanged(TObject)

Represents method DoOnBypassArrayChanged(TObject).

GetClrObject

Represents method GetClrObject. (Inherited from TClrBaseComponent.)

GetProxy(String)

Overloaded. Returns the proxied URI for a request.

GetProxy(_Uri)

Overloaded. Returns the proxied URI for a request.

IsBypassed(String)

Overloaded. Indicates whether to use the proxy server for the specified host.

IsBypassed(_Uri)

Overloaded. Indicates whether to use the proxy server for the specified host.

RegisterEventCallBack(ClrWString,Pointer)

Add an event to the instance using the specified event name and function pointer which is the event handler. The RegisterEventCallBack method does not directly add the event handler to the event. A hooking mechanism is used such that if the event is fired, the hook event is also fired which in turn calls the function pointer. (Inherited from TClrBaseComponent.)

RegisterEventSource

Register the Delphi object which will raise the .Net event handler. (Inherited from TClrBaseComponent.)

UnRegisterEventCallBack(ClrWString,Pointer)

Remove an event from the instance using the specified event name and function pointer which is the event handler. (Inherited from TClrBaseComponent.)

UnRegisterEventSource

Unregister the Delphi object which raised the .Net event handler. (Inherited from TClrBaseComponent.)

Top

See C:\Users\Public\Documents\CrystalNet Technologies\.Net VCL for Delphi Demo Folder after installation for examples of how to use this component.