Click or drag to resize

ServerConnection Class

Provides server connection information.
Inheritance Hierarchy
SystemObject
  Crm.MSCrmServiceServerConnection

Namespace: Crm.MSCrmService
Assembly: Scripting (in Scripting.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class ServerConnection

The ServerConnection type exposes the following members.

Constructors
 NameDescription
Public methodServerConnectionInitializes a new instance of the ServerConnection class
Top
Methods
 NameDescription
Public methodStatic memberConvertToSecureString Convert unsecure string to SecureString.
Public methodStatic memberConvertToUnsecureString Convert SecureString to unsecure string.
Public methodDiscoverOrganizations Discovers the organizations that the calling user belongs to.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodFindOrganization Finds a specific organization detail in the array of organization details returned from the Discovery service.
Public methodGetDeviceCredentials Get the device credentials by either loading from the local cache or request new device credentials by registering the device.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Protected methodGetOrganizationAddress Obtains the web address (Uri) of the target organization.
Public methodStatic memberGetOrganizationProxy Obtains the organization service proxy. This would give a better performance than directly calling GetProxy() generic method as it uses cached OrganizationServiceManagement in case it is present.
Protected methodGetOrgType Is this organization provisioned in Microsoft Office 365?
Public methodStatic memberGetProxyTService, TProxy Generic method to obtain discovery/organization service proxy instance.
Protected methodGetServerAddress Obtains the name and port of the server running the Microsoft Dynamics CRM Discovery service.
Public methodGetServerConfiguration Obtains the server connection information including the target organization's Uri and user logon credentials from the user.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberGetUserLogonCredentials Obtains the user's logon credentials for the target server.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodReadConfigurations Reads a server configuration file. Read the configuration from disk, if it exists, at C:\Users\YourUserName\AppData\Roaming\CrmServer\Credentials.xml.
Public methodStatic memberReadPassword Prompts user to enter password in console window and capture the entered password into SecureString.
Public methodSaveConfiguration Writes a server configuration to a file.
Public methodSaveConfigurations Writes all server configurations to a file.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldconfigurations 
Top
See Also