Partilhar via


CatalogServiceAgent Constructor (Uri, String[], IPromptForCredentials)

Initializes a new instance of the CatalogServiceAgent class for communicating with a specific Web service using the provided type of Web service proxy object.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public Sub New ( _
    uri As Uri, _
    supportedAuthMethods As String(), _
    prompter As IPromptForCredentials _
)
'Usage
Dim uri As Uri
Dim supportedAuthMethods As String()
Dim prompter As IPromptForCredentials

Dim instance As New CatalogServiceAgent(uri, supportedAuthMethods, _
    prompter)
public CatalogServiceAgent(
    Uri uri,
    string[] supportedAuthMethods,
    IPromptForCredentials prompter
)
public:
CatalogServiceAgent(
    Uri^ uri, 
    array<String^>^ supportedAuthMethods, 
    IPromptForCredentials^ prompter
)
public function CatalogServiceAgent(
    uri : Uri, 
    supportedAuthMethods : String[], 
    prompter : IPromptForCredentials
)

Parameters

  • uri
    Type: System..::.Uri
    The Uri used to locate the Web service this agent will run against.
  • supportedAuthMethods
    Type: array<System..::.String>[]()[]
    A list of authorization modes which are allowed.

Remarks

The Catalog Agent serves to abstract data from the user interface. Additionally, it caches frequently changing data and batch-processes user interface queries.

Permissions

See Also

Reference

CatalogServiceAgent Class

CatalogServiceAgent Members

CatalogServiceAgent Overload

Microsoft.CommerceServer.Catalog Namespace