Click to Rate and Give Feedback

  Switch on low bandwidth view
.NET Framework Class Library
ServiceAgent..::.Credentials Property

Gets or sets the Credentials currently being used by the Agent to access the Web service.

Namespace:  Microsoft.CommerceServer
Assembly:  Microsoft.CommerceServer.CrossTierTypes (in Microsoft.CommerceServer.CrossTierTypes.dll)
Visual Basic (Declaration)
Public Property Credentials As ICredentials
Visual Basic (Usage)
Dim instance As ServiceAgent
Dim value As ICredentials

value = instance.Credentials

instance.Credentials = value
C#
public ICredentials Credentials { get; set; }
Visual C++
public:
property ICredentials^ Credentials {
    ICredentials^ get ();
    void set (ICredentials^ value);
}
JScript
public function get Credentials () : ICredentials
public function set Credentials (value : ICredentials)

Property Value

Type: System.Net..::.ICredentials
The base authentication interface for retrieving credentials for Web client authentication.

The default behavior of the ServiceAgent is to provide the DefaultCredentialsDefaultCredentials of the current user when the Web service requires authentication and is configured to use Windows auth methods. Setting this property to a non-nullNothingnullptra null reference (Nothing in Visual Basic) value before any Web service calls are made will prevent the default credentials from being used.

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker