ClientCredentials.Clone Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Creates a new copy of this ClientCredentials instance.
Namespace: System.ServiceModel.Description
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Syntax
'Declaration
Public Function Clone As ClientCredentials
public ClientCredentials Clone()
Return Value
Type: System.ServiceModel.Description.ClientCredentials
A ClientCredentials instance.
Exceptions
Exception | Condition |
---|---|
NotImplementedException | The current credentials are nulla null reference (Nothing in Visual Basic) or not correctly typed. |
Remarks
The Clone calls the CloneCore and then checks that the credentials are not nulla null reference (Nothing in Visual Basic) and are properly typed. Override CloneCore can be in derived classes if they add new fields that must be cloned.
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
XNA Framework
Supported in: Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.