General Class

Public Class General
This language is not supported or no code example is available.
public static class General
This language is not supported or no code example is available.
public ref class General 
This language is not supported or no code example is available.
public class General
This language is not supported or no code example is available.
Methods
 
Name Description
Public method Static CSVEscapeSpecialChar(string) Escape double quote, comma and new line
Public method Static CheckForInternetConnection() Check for an internet connection
Public method Static DescribeSize(long) Describe a size
Public method Static DescribeTimeSpan(TimeSpan) Describe a time span
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method Static Get7ZipPath()
Public method Static GetDescription(this Enum) Extension method for getting enum items description Make sure each enum item has System.ComponentModel.DataAnnotations.DisplayAttribute. eg [System.ComponentModel.DataAnnotations.Display(Name = "Email Contact", Description = "Email Contact from the Contact Editor / Viewer")] if the enum item doesn't have the attribute, an empty string is returned.
Public method Static GetDisplayName(this Enum) Extension method for getting enum items display name Make sure each enum item has System.ComponentModel.DataAnnotations.DisplayAttribute. eg [System.ComponentModel.DataAnnotations.Display(Name = "Email Contact", Description = "Email Contact from the Contact Editor / Viewer")] if the enum item doesn't have the attribute, the enum name is returned.
Public method Static GetEnumDescriptionsAndValues(Type) Get enum descriptions and values - Enum must have Description attribute
Public method Static GetEnumDescriptiveNames(Type) Get all enum items display names Make sure each enum item has System.ComponentModel.DataAnnotations.DisplayAttribute. eg [System.ComponentModel.DataAnnotations.Display(Name = "Email Contact", Description = "Email Contact from the Contact Editor / Viewer")] Note: old style still supported - System.ComponentModel.DescriptionAttribute. eg [System.ComponentModel.Description("Pie Chart")]
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method Static GetLink(EntityID, EntityType, string) Get a link to an entity
Public method Static GetLocalPathWithFragment(this Uri) Extension method for getting the local path of a uri including the text after a #, which would otherwise be cut off
Public method Static GetPathWithQueryAndFragment(this Uri) Extension method for getting the path and query of a uri including the text after a #, which would otherwise be cut off
Public method Static GetSocketError(SocketException, string, int) Describe a socket exception
Public method GetType Gets the Type of the current instance. (inherited from Object).
Public method Static HasInvalidWindowsCharacters(string) Does a path or file name have any invalid characters in it
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Public method Static RemoveInvalidWindowsCharacters(string, string) Remove invalid characters from a path or file name
Public method ToString Returns a string that represents the current object. (inherited from Object).
Public method Static UrlDecodeSynergyPath(string) Decode a url for a synergy path
Top
Fields
 
Name Description
Public field DEFAULT_PORT The default port
Public field FEATURE_VERSION The feature version
Public field FILE_SERVER_VERSION The file server version
Public field PROTOCOL_VERSION The protocol version
Top
Contracts.General

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1

In this article

Definition