Microsoft.VisualBasic.Forms Provides properties, methods, and events related to the current application. Initializes a new instance of the class. Changes the culture used by the current thread for string manipulation and for string formatting. . Name of the culture as a string. For a list of possible names, see . is . is not a valid culture name. Changes the culture that the current thread uses for retrieving culture-specific resources. . Name of the culture as a string. For a list of possible names, see . is . is not a valid culture name. Returns the value of the specified environment variable. A containing the name of the environment variable. is . The environment variable specified by does not exist. The calling code does not have with access. A containing the value of the environment variable with the name . Gets the culture that the current thread uses for string manipulation and string formatting. A object that represents the culture the current thread uses for string manipulation and string formatting. Gets an object that provides properties for getting information about the application's assembly, such as the version number, description, and so on. The object for the current application. Gets an object that provides properties and methods for writing event and exception information to the application's log listeners. The object for the current application. Gets the culture that the current thread uses for retrieving culture-specific resources. A object that represents the culture that the current thread uses for retrieving culture-specific resources. Provides context for the ApplyApplicationDefaults event. Gets or sets the default font for Forms and UserControls application-wide. If this property is not written, or the event is not handled, the default font for Forms and UserControls is set by the system. Gets or sets the general for the application. The general for the application. The default value is . Gets or sets the minimum time, in milliseconds, that an application's Splash dialog is displayed. Represents the callback method that will handle the event. Provides properties for getting the information about the application, such as the version number, description, loaded assemblies, and so on. Initializes a new instance of the class with the specified assembly information. . The assembly for which to obtain the information. Gets the name, without the extension, of the assembly file for the application. A containing the file name. Gets the company name associated with the application. The assembly does not have an attribute. A that contains the company name associated with the application. Gets the copyright notice associated with the application. The assembly does not have an attribute. A containing the copyright notice associated with the application. Gets the description associated with the application. The assembly does not have an attribute. A containing the description associated with the application. Gets the directory where the application is stored. A that contains the directory where the application is stored. Gets a collection of all assemblies loaded by the application. The application domain is not loaded. A of containing all the assemblies loaded by the application. Gets the product name associated with the application. The assembly does not have an attribute. A containing the product name associated with the application. Gets the current stack-trace information. The requested stack-trace information is out of range. A containing the current stack-trace information. The return value can be . Gets the title associated with the application. The assembly does not have an attribute. A containing the associated with the application. Gets the trademark notice associated with the application. The assembly does not have an attribute. A containing the trademark notice associated with the application. Gets the version number of the application. The application does not have sufficient permissions to access the assembly version. A object containing the version number of the application. Gets the amount of physical memory mapped to the process context. A situation in which partial trust exists and the user lacks necessary permissions. A containing the number of bytes of physical memory mapped to the process context. Indicates how a Visual Basic application authenticates the user for the object. The constructor does not initialize the principal for the application's main thread. The application needs to initialize the principal for the application's main thread. The constructor initializes the principal for the application's main thread with the current user's Windows user information. This exception is thrown when a subsequent instance of a single-instance application is unable to connect to the first application instance. Initializes a new instance of the class. Initializes a new instance of the class with serialized data. The object that holds the serialized object data about the exception being thrown. The object that contains contextual information about the source or destination. Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. A object describing the error. The object that is the cause of the current exception. If the parameter is not a null reference ( in Visual Basic), the current exception is raised in a block that handles the inner exception. Initializes a new instance of the class with a specified error message. A message that describes the error. Provides properties, methods, and events related to the current application. Initializes a new instance of the class. Gets a collection containing the command-line arguments as strings for the current application. A of , containing the command-line arguments as strings for the current application. Sets the values to use as the current application's command-line arguments. A of , containing the strings to use as the command-line arguments for the current application. This exception is thrown by the Visual Basic Application Model when the property has not been set. Initializes a new instance of the class. Initializes a new instance of the class with serialized data. The object that holds the serialized object data about the exception being thrown. The object that contains contextual information about the source or destination. Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. A object describing the error. The object that is the cause of the current exception. If the parameter is not a null reference ( in Visual Basic), the current exception is raised in a catch block that handles the inner exception. Initializes a new instance of the class with a specified error message. A message that describes the error. Represents the method that will handle the event. The source of the event. A object that contains the event data. Indicates which condition should cause a Windows Forms application to shut down. Shut down only after the last form closes. Shut down when the main form closes. Provides data for the event. Initializes a new instance of the class. A object that contains the command-line arguments of the application. Gets the command-line arguments of the application. A object that contains the command-line arguments of the application. Represents the method that will handle the event. The source of the event. A object that contains the event data. Provides data for the event. Initializes a new instance of the class. A object that contains the command-line arguments of the subsequent application instance. A that indicates whether the first application instance should be brought to the foreground upon exiting the exception handler. Indicates whether the first application instance should be brought to the foreground upon exiting the exception handler. A that indicates whether the first application instance should be brought to the foreground upon exiting the exception handler. Gets the command-line arguments of the subsequent application instance. A object that contains the command-line arguments of the subsequent application instance. Represents the method that will handle the event. The source of the event. A object that contains the event data. Provides data for the event. Initializes a new instance of the class. A that indicates whether the application should exit upon exiting the exception handler. The that occurred. Indicates whether the application should exit upon exiting the exception handler. A that indicates whether the application should exit upon exiting the exception handler. Represents the method that will handle the event. The source of the event. A object that contains the event data. Provides access to the information about the current user. Initializes a new instance of the class. Determines whether the current user belongs to the specified role. The name of the role for which to check membership. if the current user is a member of the specified role; otherwise, . Gets or sets the current principal (for role-based security). The caller does not have the permission required to set the principal. A value representing the security context. Gets or sets the principal object representing the current user. An object representing the current user. Gets a value that indicates whether the user has been authenticated. if the user was authenticated; otherwise, . Gets the name of the current user. . The name of the current user. Provides properties, methods, and events related to the current application. Occurs when the application is ready to accept default values for various application areas. Occurs when the network availability changes. Occurs when the application shuts down. Occurs when the application starts. Occurs when attempting to start a single-instance application and the application is already active. Occurs when the application encounters an unhandled exception. Initializes a new instance of the class. Initializes a new instance of the class with the specified authentication mode. One of the enumeration values that specifies the application's authentication mode. Processes all Windows messages currently in the message queue. Hides the application's splash screen. When overridden in a derived class, allows a designer to emit code that configures the splash screen and main form. When overridden in a derived class, allows a designer to emit code that initializes the splash screen. Sets the visual styles, text display styles, and current principal for the main application thread (if the application uses Windows authentication), and initializes the splash screen, if defined. A read-only collection containing the command-line arguments as strings for the current application. A indicating if application startup should continue. Provides the starting point for when the main application is ready to start running, after the initialization is done. When overridden in a derived class, allows for code to run when the application shuts down. When overridden in a derived class, allows for code to run when the application starts. The command-line arguments of the application and indicates whether the application startup should be canceled. A that indicates if the application should continue starting up. When overridden in a derived class, allows for code to run when a subsequent instance of a single-instance application starts. The command-line arguments of the subsequent application instance and indicates whether the first application instance should be brought to the foreground upon exiting the exception handler. When overridden in a derived class, allows for code to run when an unhandled exception occurs in the application. The data for the event. A that indicates whether the event was raised. Sets up and starts the Visual Basic Application model. The command line from . Determines if the application has a splash screen defined, and if it does, displays it. Gets the object for the current thread of a Windows Forms application. Contextual information about the current thread. Determines whether this application will use the Windows XP styles for windows, controls, and so on. A value that indicates whether this application will use the XP Windows styles for windows, controls, and so on. Gets or sets the HighDpiMode for the application. Gets or sets a value that indicates whether this application is a single-instance application. to indicate this application is a single-instance application; otherwise, . Gets or sets the main form for this application. The main form for this application. Gets or sets the minimum length of time, in milliseconds, for which the splash screen is displayed. The minimum length of time, in milliseconds, for which the splash screen is displayed. Gets a collection of all the application's open forms. A collection that contains all of the application's open forms. Determines whether the application saves the user settings on exit. to indicate that the application saves the user settings on exit. Otherwise, to indicate the settings are not implicitly saved. Determines what happens when the application's main form closes. One of the enumeration values that indicates what the application should do when the main form closes. Gets or sets the splash screen for this application. The same value is assigned to this property and the property. The splash screen for the application. When overridden in a derived class, this property allows a designer to specify the default text rendering engine for the application's forms. . A value of indicates that the application should use the default text rendering engine for Visual Basic 2005. A value of indicates that the application should use the text rendering engine for Visual Basic .NET 2002 and Visual Basic .NET 2003. Indicates how to play sounds when calling audio methods. Causes the method to play the sound in the background. The calling code continues to execute. Causes the method to play the sound in the background until the method is called. The calling code continues to execute. Causes the method to play the sound, and waits until it completes before calling code continues. Returns a reference to and information about the current Visual Basic host window. Initializes a new instance of the class. Gets the current Visual Basic host object. A object that returns a reference to and information about the current Visual Basic host window. Represents a host window for Visual Basic. Gets the host Window for the current Visual Basic environment. The host window for the current Visual Basic environment. Gets the title of the host window for the current Visual Basic environment. The title of the host window for the current Visual Basic environment. Provides methods for playing sounds. Initializes a new instance of the class. Plays a .wav sound file. array that represents the sound file. mode for playing the sound. By default, . is . is not one of the enumeration values. A partial-trust situation exists in which the user lacks necessary permissions. Plays a .wav sound file. that represents the sound file. mode for playing the sound. By default, . is . is not one of the enumeration values. A partial-trust situation exists in which the user lacks necessary permissions. Plays a .wav sound file. A containing the name of the sound file. mode for playing the sound. By default, . is an empty string. The user does not have sufficient permissions to access the file named by . The file path is malformed in . The path name in is too long. is not one of the enumeration values. A partial-trust situation exists in which the user lacks necessary permissions. Plays a .wav sound file. A containing the name of the sound file. is an empty string. The user does not have sufficient permissions to access the file named by . The file path is malformed in . The path name in is too long. A partial-trust situation exists in which the user lacks necessary permissions. Plays a system sound. object representing the system sound to play. is . Stops a sound playing in the background. Provides properties for accessing the current local time and Universal Coordinated Time (equivalent to Greenwich Mean Time) from the system clock. Initializes a new instance of the class. Gets a object that contains the current local date and time on the computer, expressed as a UTC (GMT) time. A object that contains the current date and time expressed as UTC (GMT) time. Gets a object that contains the current local date and time on this computer. A object that contains the current local date and time. Gets the millisecond count from the computer's system timer. An containing the millisecond count from the computer's system timer. Provides properties for manipulating computer components such as audio, the clock, the keyboard, the file system, and so on. Initializes a new instance of the class. Gets an object that provides properties for methods for playing sounds. The object for the computer. Gets an object that provides methods for manipulating the Clipboard. The object for the computer. Gets an object that provides properties for accessing the current state of the keyboard, such as what keys are currently pressed, and provides a method to send keystrokes to the active window. The object for the computer. Gets an object that provides properties for getting information about the format and configuration of the mouse installed on the local computer. The object for the computer. Gets the object that represents the computer's primary display screen. A object that represents the computer's primary screen. Provides properties for getting information about the computer's memory, loaded assemblies, name, and operating system. Initializes a new instance of the class. Gets the total amount of free physical memory for the computer. The application cannot obtain the memory status. A containing the number of bytes of free physical memory for the computer. Gets the total amount of the computer's free virtual address space. The application cannot obtain the memory status. A containing the number of bytes of the computer's free virtual address space. Gets the current UI culture installed with the operating system. A object represents the UI culture installed on the computer. Gets the full operating system name. The calling code does not have full trust. A containing the operating-system name. Gets the platform identifier for the operating system of the computer. The application cannot obtain the operating-system platform information. A containing the platform identifier for the operating system of the computer, chosen from the member names of the enumeration. Gets the version of the computer's operating system. The application cannot obtain the operating-system version information. A containing the current version number of the operating system. Gets the total amount of physical memory for the computer. The application cannot obtain the memory status. A containing the number of bytes of physical memory for the computer. Gets the total amount of virtual address space available for the computer. The application cannot obtain the memory status. A containing the number of bytes of virtual address space available for the computer. Provides properties for accessing the current state of the keyboard, such as what keys are currently pressed, and provides a method to send keystrokes to the active window. Initializes a new instance of the class. Sends one or more keystrokes to the active window, as if typed on the keyboard. A that defines the keys to send. Optional. A that specifies whether or not to wait for keystrokes to get processed before the application continues. by default. A partial-trust situation exists in which the user lacks necessary permissions. Sends one or more keystrokes to the active window, as if typed on the keyboard. A that defines the keys to send. A partial-trust situation exists in which the user lacks necessary permissions. Gets a value that indicates whether the ALT key is down. if the ALT key is down; otherwise, . Gets a value that indicates whether CAPS LOCK is turned on. A value: if CAPS LOCK is turned on; otherwise, . Gets a value that indicates whether a CTRL key is down. if a CTRL key is down; otherwise, . Gets a value that indicates whether the NUM LOCK key is on. if NUM LOCK is on; otherwise, . Gets a indicating whether the SCROLL LOCK key is on. if SCROLL LOCK is on; otherwise, . Gets a value that indicates whether a SHIFT key is down. if a SHIFT key is down; otherwise, . Provides properties for getting information about the format and configuration of the mouse installed on the local computer. Initializes a new instance of the class. Gets a that indicates if the functionality of the left and right mouse buttons has been swapped. The computer has no mouse installed. A with a value if the functionality of the left and right mouse buttons has been swapped; otherwise, . Gets a that indicates if the mouse has a scroll wheel. The computer has no mouse installed. A Boolean with value if the mouse has a scroll wheel; otherwise . Gets a number that indicates how much to scroll when the mouse wheel is rotated one notch. The mouse has no scroll wheel. An that indicates how much to scroll when the mouse wheel is rotated one notch. A positive value indicates scrolling by that number of lines, while a negative value indicates scrolling by one screen at a time. Provides a property, event, and methods for interacting with the network to which the computer is connected. Occurs when the network availability changes. Initializes a new instance of the class. Downloads the specified remote file and saves it in the specified location. Path of the file to download, including file name and host address. File name and path of the downloaded file. User name to authenticate. Default is an empty string, "". Password to authenticate. Default is an empty string, "". to display the progress of the operation; otherwise . Default is . Timeout interval, in milliseconds. Default is 100 seconds. to overwrite existing files; otherwise . Default is . Specifies behavior when the user clicks Cancel or No on the dialog box shown as a result of ShowUI set to . Default is . ends with a trailing slash. is set to and the destination file already exists. The server does not respond within the specified . User lacks necessary permissions to perform a network operation. The request is denied by the target web server. Downloads the specified remote file and saves it in the specified location. Path of the file to download, including file name and host address. File name and path of the downloaded file. User name to authenticate. Default is an empty string, "". Password to authenticate. Default is an empty string, "". to display the progress of the operation; otherwise . Default is . . Timeout interval, in milliseconds. Default is 100 seconds. to overwrite existing files; otherwise . Default is . ends with a trailing slash. is set to and the destination file already exists. The server does not respond within the specified . User lacks necessary permissions to perform a network operation. The request is denied by the target web server. Downloads the specified remote file and saves it in the specified location. Path of the file to download, including file name and host address. File name and path of the downloaded file. User name to authenticate. Default is an empty string, "". Password to authenticate. Default is an empty string, "". ends with a trailing slash. The server does not respond within the default timeout (100 seconds). User lacks necessary permissions to perform a network operation. The request is denied by the target web server. Downloads the specified remote file and saves it in the specified location. Path of the file to download, including file name and host address. File name and path of the downloaded file. ends with a trailing slash. The server does not respond within the default timeout (100 seconds). User lacks necessary permissions to perform a network operation. The request is denied by the target web server. Downloads the specified remote file and saves it in the specified location. Path of the file to download, including file name and host address. File name and path of the downloaded file. Credentials to be supplied. to display the progress of the operation; otherwise . Default is . Timeout interval, in milliseconds. Default is 100 seconds. to overwrite existing files; otherwise . Default is . Specifies behavior when the user clicks Cancel or No on the dialog box shown as a result of set to . Default is . ends with a trailing slash. is set to and the destination file already exists. The server does not respond within the specified . User lacks necessary permissions to perform a network operation. The request is denied by the target web server. Downloads the specified remote file and saves it in the specified location. or . Path of the file to download, including file name and host address. . File name and path of the downloaded file. . Credentials to be supplied. to display the progress of the operation; otherwise . Default is . Timeout interval, in milliseconds. Default is 100 seconds. to overwrite existing files; otherwise . Default is . ends with a trailing slash. is set to and the destination file already exists. The server does not respond within the specified . User lacks necessary permissions to perform a network operation. The request is denied by the target web server. Downloads the specified remote file and saves it in the specified location. Path of the file to download, including file name and host address. File name and path of the downloaded file. User name to authenticate. Default is an empty string, "". Password to authenticate. Default is an empty string, "". to display the progress of the operation; otherwise . Default is . Timeout interval, in milliseconds. Default is 100 seconds. to overwrite existing files; otherwise . Default is . Specifies behavior when the user clicks Cancel or No on the dialog box shown as a result of ShowUI set to . Default is . ends with a trailing slash. is set to and the destination file already exists. The server does not respond within the specified . User lacks necessary permissions to perform a network operation. The request is denied by the target web server. Downloads the specified remote file and saves it in the specified location. Path of the file to download, including file name and host address. File name and path of the downloaded file. User name to authenticate. Default is an empty string, "". Password to authenticate. Default is an empty string, "". to display the progress of the operation; otherwise . Default is . Timeout interval, in milliseconds. Default is 100 seconds. to overwrite existing files; otherwise . Default is . ends with a trailing slash. is set to and the destination file already exists. The server does not respond within the specified . User lacks necessary permissions to perform a network operation. The request is denied by the target web server. Downloads the specified remote file and saves it in the specified location. Path of the file to download, including file name and host address. File name and path of the downloaded file. User name to authenticate. Default is an empty string, "". Password to authenticate. Default is an empty string, "". ends with a trailing slash. The server does not respond within the default timeout (100 seconds). User lacks necessary permissions to perform a network operation. The request is denied by the target web server. Downloads the specified remote file and saves it in the specified location. Path of the file to download, including file name and host address. File name and path of the downloaded file. ends with a trailing slash. The server does not respond within the default timeout (100 seconds). User lacks necessary permissions to perform a network operation. The request is denied by the target web server. Pings the specified server. The URL, computer name, or IP number of the server to ping. Time threshold in milliseconds for contacting the destination. Default is 500. No network connection is available. URL was not valid. if the operation was successful; otherwise . Pings the specified server. The URL, computer name, or IP number of the server to ping. No network connection is available. URL was not valid. if the operation was successful; otherwise . Pings the specified server. The URI of the server to ping. Time threshold in milliseconds for contacting the destination. Default is 500. No network connection is available. URL was not valid. if the operation was successful; otherwise . Pings the specified server. The URI of the server to ping. No network connection is available. URL was not valid. if the operation was successful; otherwise . Sends the specified file to the specified host address. Path and name of file to upload. URL, IP address, or URI of destination server. User name to authenticate. Default is an empty string: "". Password to authenticate. Default is an empty string: "". Whether to display progress of the operation. Default is . Timeout interval in milliseconds. Default is 100 seconds. Action to be taken when the user clicks Cancel. Default is . is less than or equal to zero. does not include a file name. User lacks necessary permissions to perform a network operation. The server does not respond within the specified . The request is denied by the target web server. Sends the specified file to the specified host address. Path and name of file to upload. URL, IP address, or URI of destination server. User name to authenticate. Default is an empty string: "". Password to authenticate. Default is an empty string: "". to display progress of the operation; otherwise . Default is . Timeout interval in milliseconds. Default is 100 seconds. is less than or equal to zero. does not include a file name. User lacks necessary permissions to perform a network operation. The server does not respond within the specified . The request is denied by the target web server. Sends the specified file to the specified host address. Path and name of file to upload. URL, IP address, or URI of destination server. User name to authenticate. Default is an empty string: "". Password to authenticate. Default is an empty string: "". is less than or equal to zero. does not include a file name. User lacks necessary permissions to perform a network operation. The server does not respond within the default timeout (100 seconds). The request is denied by the target web server. Sends the specified file to the specified host address. Path and name of file to upload. URL, IP address, or URI of destination server. The source file path is not valid. does not include a file name. User lacks necessary permissions to perform a network operation. The server does not respond within the default timeout (100 seconds). The request is denied by the target web server. Sends the specified file to the specified host address. Path and name of file to upload. URL, IP address, or URI of destination server. Credentials for authentication. to display progress of the operation; otherwise . Default is . Timeout interval in milliseconds. Default is 100 seconds. Action to be taken when the user clicks Cancel. Default is . is less than or equal to zero. does not include a file name. User lacks necessary permissions to perform a network operation. The server does not respond within the specified . The request is denied by the target web server. Sends the specified file to the specified host address. Path and name of file to upload. URL, IP address, or URI of destination server. Credentials for authentication. to display progress of the operation; otherwise . Default is . Timeout interval in milliseconds. Default is 100 seconds. is less than or equal to zero. does not include a file name. User lacks necessary permissions to perform a network operation. The server does not respond within the specified . The request is denied by the target web server. Sends the specified file to the specified host address. Path and name of file to upload. URL, IP address, or URI of destination server. User name to authenticate. Default is an empty string: "". Password to authenticate. Default is an empty string: "". Whether to display progress of the operation. Default is . Timeout interval in milliseconds. Default is 100 seconds. Action to be taken when the user clicks Cancel. Default is . is less than or equal to zero. does not include a file name. User lacks necessary permissions to perform a network operation. The server does not respond within the specified . The request is denied by the target web server. Sends the specified file to the specified host address. Path and name of file to upload. URL, IP address, or URI of destination server. User name to authenticate. Default is an empty string: "". Password to authenticate. Default is an empty string: "". to display progress of the operation; otherwise . Default is . Timeout interval in milliseconds. Default is 100 seconds. is less than or equal to zero. does not include a file name. User lacks necessary permissions to perform a network operation. The server does not respond within the specified . The request is denied by the target web server. Sends the specified file to the specified host address. Path and name of file to upload. URL, IP address, or URI of destination server. User name to authenticate. Default is an empty string: "". Password to authenticate. Default is an empty string: "". is less than or equal to zero. does not include a file name. User lacks necessary permissions to perform a network operation. The server does not respond within the default timeout (100 seconds). The request is denied by the target web server. Sends the specified file to the specified host address. Path and name of file to upload. URL, IP address, or URI of destination server. The source file path is not valid. does not include a file name. User lacks necessary permissions to perform a network operation. The server does not respond within the default timeout (100 seconds). The request is denied by the target web server. Indicates whether a computer is connected to a network. if the computer is connected to a network; otherwise . Provides data for the and events. Initializes a new instance of the class. A that indicates whether a network is available to the application. Gets a value indicating whether a network is available to the application. A that indicates whether a network is available to the application. Represents the method that will handle the or event. The source of the event. A object that contains the event data. Provides properties for manipulating computer components such as audio, the clock, the keyboard, the file system, and so on. Initializes a new instance of the class. Gets an object that provides properties for accessing the current local time and Universal Coordinated Time (the equivalent to Greenwich Mean Time) from the system clock. The object for the computer. Gets an object that provides properties and methods for working with drives, files, and directories. The object for the computer. Gets an object that provides properties for getting information about the computer's memory, loaded assemblies, name, and operating system. The object for the computer. Gets the computer name. A containing the name of the computer. Gets an object that provides a property and methods for interacting with the network to which the computer is connected. The object for the computer. Gets an object that provides properties and methods for manipulating the registry. The object for the computer. Determines what to do when the object attempts to write to a log and there is less free disk space available than specified by the property. Discard log messages. Throw an exception. Provides a simple listener that directs logging output to file. Initializes a new instance of the class with the default name. Initializes a new instance of the class with the supplied name. . The name of the instance object. Closes the underlying stream for the current log file and releases any resources associated with the current stream. Closes the underlying stream and optionally releases the managed resources. releases both managed and unmanaged resources; releases only unmanaged resources. Flushes the underlying stream that writes to the current log file. Gets the custom XML configuration attributes supported by the trace listener. array containing the XML configuration attributes recognized by this listener. Writes trace information, a data object, and event information to the output file or stream. A object that contains the current process ID, thread ID, and stack trace information. A name of the trace source that invoked this method. One of the enumeration values. A numeric identifier for the event. The trace data to emit. Writes trace information, an array of data objects, and event information to the output file or stream. A object that contains the current process ID, thread ID, and stack trace information. The name of the trace source that invoked this method. One of the enumeration values. A numeric identifier for the event. An array of objects to emit as data. Writes trace information, a formatted array of objects, and event information to the output file or stream. A object that contains the current process ID, thread ID, and stack trace information. A name of the trace source that invoked this method. One of the enumeration values. A numeric identifier for the event. A format string that contains zero or more format items, which correspond to objects in the array. An array containing zero or more objects to format. Writes trace information, a message and event information to the output file or stream. A object that contains the current process ID, thread ID, and stack trace information. A name of the trace source that invoked this method. One of the enumeration values. A numeric identifier for the event. A message to write. Writes a verbatim message to disk, without any additional context information. . The custom message to write. Writes a verbatim message to disk, followed by the current line terminator, without any additional context information. . The custom message to write. Determines whether to append the output to the current file or write it to a new or existing file. , with indicating that the output is appended to the current file, and indicating that output is written to a new file. The default setting for this property is . Indicates whether or not the writing to the log file stream flushes the buffer. , with indicating that the stream is flushed after every write; otherwise the log entries are buffered and written more efficiently. The default setting for this property is . Gets or sets the base name for the log files, which is used to create the full log-file name. . The base name for the log files. The default is the application's product name. Gets or sets the log file directory when the property is set to . , which is the name of the log-file directory. The default setting for this property is the user's directory for application data. Gets or sets the delimiter used to delimit fields within a log message. , which is the delimiter used for fields within a log message. The default setting for this property is the TAB character. Determines what to do when writing to the log file and there is less free disk space available than specified by the property. . Determines what to do when attempting to write to the log file and there is less free disk space available than specified by the property, or if the log file size is greater than what the property allows. The default value is . Gets or sets the encoding to use when creating a new log file. , which is the encoding to use when creating a new log file. The default value of this property is . Gets the current full log-file name. , which is the current full log-file name. Indicates whether or not the host name of the logging machine should be included in the output. . Use if the host identifier should be included; otherwise use . The default value is . Gets or sets location for the log files. , which is the location for the log file. The default value is . Determines which date to include in the names of the log files. . This indicates which date to include in the log-file names. The default value is . Gets or sets the maximum allowed size of the log file, in bytes. When this property is set to a value less than 1000. . This is the maximum allowed log-file size, in bytes. The default value is 5000000. Gets or sets the amount of free disk space, in bytes, necessary before messages can be written to the log file. When this property is set to a value less than 0. . This is the amount of free disk space necessary. The default value is 10000000. Provides a property and methods for writing event and exception information to the application's log listeners. Initializes a new instance of the class. Initializes a new instance of the class. . The name to give to the property object. Creates a new object and adds it to the collection. Writes a message to the application's log listeners. Required. The message to log. If is , an empty string is used. The type of message. By default, . Message identifier, typically used for correlation. By default, related to entryType as described in the table. The message type is not one of the enumeration values. Code with partial trust calls the method, but writes to an event log listener that requires full trust. Writes a message to the application's log listeners. Required. The message to log. If is , an empty string is used. The type of message. By default, . The message type is not one of the enumeration values. Code with partial trust calls the method, but writes to an event log listener that requires full trust. Writes a message to the application's log listeners. Required. The message to log. If is , an empty string is used. Code with partial trust calls the method, but writes to an event log listener that requires full trust. Writes exception information to the application's log listeners. Required. Exception to log. The type of message. By default, . String to append to the message. By default, this is an empty string. Message identifier, typically used for correlation. By default, related to entryType as described in the table in the Remarks section. is . The message type is not one of the enumeration values. Code with partial trust calls the method, but writes to an event log listener that requires full trust. Writes exception information to the application's log listeners. Required. Exception to log. The type of message. By default, . String to append to the message. By default, this is an empty string. is . The message type is not one of the enumeration values. Code with partial trust calls the method, but writes to an event log listener that requires full trust. Writes exception information to the application's log listeners. Required. Exception to log. is . Code with partial trust calls the method, but writes to an event log listener that requires full trust. Gets the file the object that underlies the object. The object that underlies the object. Gets to the object that underlies the object. The object that underlies the object. Determines which date to include in the names of the class log files. Include the current date in the log file name. Do not include the date in the log file name. Include the first day of the current week in the log file name. Determines which predefined path the class uses to write its log files. Use the path for the application data that is shared among all users. If the string specified by is not empty, then use it as the path. Otherwise, use the path for a user's application data. Use the path for the executable file that started the application. Use the path for a user's application data. Use the path of the current system's temporary folder. Provides methods for manipulating the Clipboard. Clears the Clipboard. Indicates whether the Clipboard contains audio data. if audio data is stored on the Clipboard; otherwise . Indicates whether the Clipboard contains data in the specified custom format. . Name of the custom format to be checked. Required. if data in the specified custom format is stored on the Clipboard; otherwise . Returns a indicating whether the Clipboard contains a file drop list. if a file drop list is stored on the Clipboard; otherwise . Returns a indicating whether an image is stored on the Clipboard. if an image is stored on the Clipboard; otherwise . Determines if there is text on the Clipboard. if the Clipboard contains text; otherwise . Determines if there is text on the Clipboard. . If specified, identifies what text format to be checked for. Required. if the Clipboard contains text; otherwise . Retrieves an audio stream from the Clipboard. A object containing audio data or if the Clipboard does not contain any audio data. Retrieves data in a custom format from the Clipboard. . Name of the data format. Required. An representing the Clipboard data or if the Clipboard does not contain any data that is in the specified format or can be converted to that format. Retrieves data from the Clipboard as an . An object that represents the data currently on the Clipboard, or if there is no data on the Clipboard. Retrieves a collection of strings representing file names from the Clipboard. A containing file names or if the Clipboard does not contain any data that is in the format or can be converted to that format. Retrieves an image from the Clipboard. An representing the Clipboard image data or if the Clipboard does not contain any data that is in the format or can be converted to that format. Retrieves text from the Clipboard. The Clipboard text data or an empty string if the Clipboard does not contain data in the or format, depending on the operating system. Retrieves text from the Clipboard. . If specified, identifies what text format should be retrieved. Default is . Required. The Clipboard text data or an empty string if the Clipboard does not contain data in the specified format. Writes audio data to the Clipboard. array. Audio data to be written to the Clipboard. Required. Writes audio data to the Clipboard. Audio data to be written to the clipboard. Required. Writes data in a custom format to the Clipboard. . Format of data. Required. . Data object to be written to the Clipboard. Required. Writes a to the Clipboard. . Data object to be written to the Clipboard. Required. Writes a collection of strings representing file paths to the Clipboard. . List of file names. Required. Writes an image to the Clipboard. . Image to be written. Required. Writes text to the Clipboard. . Text to be written. Required. . Format to be used when writing text. Default is . Required. is an empty string. is . Writes text to the Clipboard. . Text to be written. Required. is an empty string. is . Provides properties and methods for working with drives, files, and directories. Combines two paths and returns a properly formatted path. . First path to be combined. . Second path to be combined. or are malformed paths. The combination of the specified paths. Copies a directory to another directory. The directory to be copied. The location to which the directory should be copied. Whether to visually track the operation's progress. Default is . Specifies what should be done if the user clicks Cancel during the operation. Default is . The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\). or is or an empty string. The source directory does not exist. The source path and target path are the same. The operation is cyclic. The path exceeds the system-defined maximum length. A folder name in the path contains a colon (:) or is in an invalid format. The user lacks necessary permissions to view the path. A destination file exists but cannot be accessed. is set to and the user cancels the operation, or one or more files in the directory cannot be copied. Copies a directory to another directory. The directory to be copied. The location to which the directory should be copied. Whether to visually track the operation's progress. Default is . The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\). or is or an empty string. The source directory does not exist. The source path and target path are the same. The operation is cyclic. The path exceeds the system-defined maximum length. A folder name in the path contains a colon (:) or is in an invalid format. The user lacks necessary permissions to view the path. A destination file exists but cannot be accessed. is set to and the user cancels the operation, or one or more files in the directory cannot be copied. Copies a directory to another directory. The directory to be copied. The location to which the directory should be copied. to overwrite existing files; otherwise . Default is . The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\). or is or an empty string. The source directory does not exist. The source path and target path are the same. The operation is cyclic. The path exceeds the system-defined maximum length. A folder name in the path contains a colon (:) or is in an invalid format. The user lacks necessary permissions to view the path. A destination file exists but cannot be accessed. Copies a directory to another directory. The directory to be copied. The location to which the directory should be copied. The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\). or is or an empty string. The source directory does not exist. The source path and target path are the same. The operation is cyclic. The path exceeds the system-defined maximum length. A folder name in the path contains a colon (:) or is in an invalid format. The user lacks necessary permissions to view the path. A destination file exists but cannot be accessed. Copies a file to a new location. The file to be copied. The location to which the file should be copied. Whether to visually track the operation's progress. Default is . Specifies what should be done if the user clicks Cancel during the operation. Default is . contains path information. or is or an empty string. The source file is not valid or does not exist. The destination file exists and is set to . A file or directory name in the path contains a colon (:) or is in an invalid format. The path exceeds the system-defined maximum length. The user does not have required permission. The user lacks necessary permissions to view the path. is set to , and the user has canceled the operation or an unspecified I/O error occurs. Copies a file to a new location. The file to be copied. The location to which the file should be copied. Whether to visually track the operation's progress. Default is . contains path information. or is or an empty string. The source file is not valid or does not exist. The destination file exists and is set to . A file or directory name in the path contains a colon (:) or is in an invalid format. The path exceeds the system-defined maximum length. The user does not have required permission. The user lacks necessary permissions to view the path. Copies a file to a new location. The file to be copied. The location to which the file should be copied. if existing files should be overwritten; otherwise . Default is . contains path information. or is or an empty string. The source file is not valid or does not exist. The destination file exists and is set to . A file or directory name in the path contains a colon (:) or is in an invalid format. The path exceeds the system-defined maximum length. The user does not have required permission. The user lacks necessary permissions to view the path. Copies a file to a new location. The file to be copied. The location to which the file should be copied. contains path information. or is or an empty string. The source file is not valid or does not exist. A file in the target directory with the same name is in use. A file or directory name in the path contains a colon (:) or is in an invalid format. The path exceeds the system-defined maximum length. The user does not have required permission. The user lacks necessary permissions to view the path. Creates a directory. Name and location of the directory. The directory name is malformed. For example, it contains illegal characters or is only white space. is or an empty string. The directory name is too long. The directory name is only a colon (:). The parent directory of the directory to be created is read-only. The user does not have permission to create the directory. Deletes a directory. Directory to be deleted. Specifies what should be done when a directory that is to be deleted contains files or directories. Default is . The path is a zero-length string, is malformed, contains only white space, or contains invalid characters (including wildcard characters). The path is a device path (starts with \\.\). is or an empty string. The directory does not exist or is a file. A file in the directory or subdirectory is in use. The directory name contains a colon (:). The path exceeds the system-defined maximum length. The user does not have required permissions. The user cancels the operation or the directory cannot be deleted. Deletes a directory. Directory to be deleted. Specifies whether to visually track the operation's progress. Default is . Specifies whether or not the deleted file should be sent to the Recycle Bin. Default is . Specifies whether to throw an exception if the user clicks Cancel. The path is a zero-length string, is malformed, contains only white space, or contains invalid characters (including wildcard characters). The path is a device path (starts with \\.\). is or an empty string. The directory does not exist or is a file. A file in the directory or subdirectory is in use. The directory name contains a colon (:). The path exceeds the system-defined maximum length. The user does not have required permissions. The user cancels the operation or the directory cannot be deleted. Deletes a directory. Directory to be deleted. Specifies whether to visually track the operation's progress. Default is . Specifies whether or not the deleted file should be sent to the Recycle Bin. Default is . The path is a zero-length string, is malformed, contains only white space, or contains invalid characters (including wildcard characters). The path is a device path (starts with \\.\). is or an empty string. The directory does not exist or is a file. A file in the directory or subdirectory is in use. The directory name contains a colon (:). The path exceeds the system-defined maximum length. The user does not have required permissions. The user cancels the operation or the directory cannot be deleted. Deletes a file. Name and path of the file to be deleted. Whether to visually track the operation's progress. Default is . Whether or not the deleted file should be sent to the Recycle Bin. Default is . Specifies whether or not an exception is thrown when the user cancels the operation. Default is . The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; it has a trailing slash where a file must be specified; or it is a device path (starts with \\.\). is or an empty string. The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. The file is in use. The user lacks necessary permissions to view the path. The file does not exist. The user does not have permission to delete the file or the file is read-only. The user cancelled the operation and is set to . Deletes a file. Name and path of the file to be deleted. Whether to visually track the operation's progress. Default is . Whether or not the deleted file should be sent to the Recycle Bin. Default is . The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; it has a trailing slash where a file must be specified; or it is a device path (starts with \\.\). is or an empty string. The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. The file is in use. The user lacks necessary permissions to view the path. The file does not exist. The user does not have permission to delete the file or the file is read-only. Deletes a file. Name and path of the file to be deleted. The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; it has a trailing slash where a file must be specified; or it is a device path (starts with \\.\). is or an empty string. The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. The file is in use. The user lacks necessary permissions to view the path. The file does not exist. The user does not have permission to delete the file or the file is read-only. Returns if the specified directory exists. Path of the directory. if the directory exists; otherwise . Returns if the specified file exists. Name and path of the file. The name of the file ends with a backslash (\). Returns if the file exists; otherwise this method returns . Returns a read-only collection of strings representing the names of files containing the specified text. The directory to be searched. The search text. if the search should be case-sensitive; otherwise . Default is . Whether to include subfolders. Default is . Pattern to be matched. The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\). is or an empty string. The specified directory does not exist. The specified directory points to an existing file. The path exceeds the system-defined maximum length. The specified directory path contains a colon (:) or is in an invalid format. The user lacks necessary permissions to view the path. The user lacks necessary permissions. Read-only collection of the names of files containing the specified text. Returns a read-only collection of strings representing the names of files containing the specified text. The directory to be searched. The search text. if the search should be case-sensitive; otherwise . Default is . Whether to include subfolders. Default is . The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\). is or an empty string. The specified directory does not exist. The specified directory points to an existing file. The path exceeds the system-defined maximum length. The specified directory path contains a colon (:) or is in an invalid format. The user lacks necessary permissions to view the path. The user lacks necessary permissions. Read-only collection of the names of files containing the specified text. Returns a collection of strings representing the path names of subdirectories within a directory. Name and path of directory. Whether to include subfolders. Default is . Pattern to match names. The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\). One or more of the specified wildcard characters is , an empty string, or contains only spaces. The specified directory does not exist. The specified directory points to an existing file. The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. The user lacks necessary permissions to view the path. The user lacks necessary permissions. Read-only collection of the path names of subdirectories within the specified directory. Returns a collection of strings representing the path names of subdirectories within a directory. Name and path of directory. The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\). is or an empty string. The specified directory does not exist. The specified directory points to an existing file. The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. The user lacks necessary permissions to view the path. The user lacks necessary permissions. Read-only collection of the path names of subdirectories within the specified directory. Returns a object for the specified path. . Path of directory. The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\). is or an empty string. The path exceeds the system-defined maximum length. The directory path contains a colon (:) or is in an invalid format. The user lacks necessary permissions to view the path. object for the specified path. Returns a object for the specified drive. Drive to be examined. The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\). is or an empty string. The path exceeds the system-defined maximum length. The user lacks necessary permissions to view the path. object for the specified drive. Returns a object for the specified file. Name and path of the file. The path name is malformed. For example, it contains invalid characters or is only white space. The file name has a trailing slash mark. is or an empty string. The path contains a colon in the middle of the string. The path is too long. The user lacks necessary permissions. The user lacks ACL (access control list) access to the file. object for the specified file. Returns a read-only collection of strings representing the names of files within a directory. Directory to be searched. Whether to include subfolders. Default is . Pattern to be matched. The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\). is . The directory to search does not exist. points to an existing file. The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. The user lacks necessary permissions to view the path. The user lacks necessary permissions. Read-only collection of file names from the specified directory. Returns a read-only collection of strings representing the names of files within a directory. Directory to be searched. The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\). is . The directory to search does not exist. points to an existing file. The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. The user lacks necessary permissions to view the path. The user lacks necessary permissions. Read-only collection of file names from the specified directory. Parses the file name out of the path provided. Required. Path to be parsed. . The file name from the specified path. Returns the parent path of the provided path. Path to be examined. Path does not have a parent path because it is a root path. is . The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. The parent path of the provided path. Creates a uniquely named zero-byte temporary file on disk and returns the full path of that file. containing the full path of the temporary file. Moves a directory from one location to another. Path of the directory to be moved. Path of the directory to which the source directory is being moved. Specifies whether to visually track the operation's progress. Default is . Specifies whether or not an exception is thrown when the user cancels the operation. Default is . The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\). or is or an empty string. The directory does not exist. is set to and a subdirectory of the file cannot be copied. is set to , and the user cancels the operation, or the operation cannot be completed. The user lacks necessary permissions to view the path. The path exceeds the system-defined maximum length. The operation is cyclic. A file or directory name in the path contains a colon (:) or is in an invalid format. The user does not have required permission. Moves a directory from one location to another. Path of the directory to be moved. Path of the directory to which the source directory is being moved. Specifies whether to visually track the operation's progress. Default is . The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\). or is or an empty string. The directory does not exist. The target directory already exists and is set to . The path exceeds the system-defined maximum length. The operation is cyclic. A file or directory name in the path contains a colon (:) or is in an invalid format. The user lacks necessary permissions to view the path. The user does not have required permission. Moves a directory from one location to another. Path of the directory to be moved. Path of the directory to which the source directory is being moved. if existing directories should be overwritten; otherwise . Default is . The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\). or is or an empty string. The directory does not exist. The target directory already exists and is set to . The path exceeds the system-defined maximum length. The operation is cyclic. A file or directory name in the path contains a colon (:) or is in an invalid format. The user lacks necessary permissions to view the path. The user does not have required permission. Moves a directory from one location to another. Path of the directory to be moved. Path of the directory to which the source directory is being moved. The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\). or is or an empty string. The directory does not exist. The source is a root directory or The source path and the target path are the same. The path exceeds the system-defined maximum length. The operation is cyclic. A file or directory name in the path contains a colon (:) or is in an invalid format. The user lacks necessary permissions to view the path. The user does not have required permission. Moves a file to a new location. Path of the file to be moved. Path of the directory into which the file should be moved. Specifies whether to visually track the operation's progress. Default is . Specifies whether or not an exception is thrown when the user cancels the operation. Default is . The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\); it ends with a trailing slash. is or an empty string. The source file is not valid or does not exist. The file is in use by another process, or an I/O error occurs. is set to , and either the user has cancelled the operation or an unspecified I/O error occurs. The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. The user lacks necessary permissions to view the path. Moves a file to a new location. Path of the file to be moved. Path of the directory into which the file should be moved. Specifies whether to visually track the operation's progress. Default is . The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\); it ends with a trailing slash. is or an empty string. The source file is not valid or does not exist. The file is in use by another process, or an I/O error occurs. The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. The user lacks necessary permissions to view the path. Moves a file to a new location. Path of the file to be moved. Path of the directory into which the file should be moved. to overwrite existing files; otherwise . Default is . The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\); it ends with a trailing slash. is or an empty string. The source file is not valid or does not exist. The file is in use by another process, or an I/O error occurs. The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. The user lacks necessary permissions to view the path. Moves a file to a new location. Path of the file to be moved. Path of the directory into which the file should be moved. The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\); it ends with a trailing slash. is or an empty string. The source file is not valid or does not exist. The file is in use by another process, or an I/O error occurs. The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. The user lacks necessary permissions to view the path. The method allows you to create a object, which provides a way to easily and efficiently parse structured text files, such as logs. The object can be used to read both delimited and fixed-width files. The file to be opened with the . Widths of the fields. The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\); it ends with a trailing slash. is . The file does not exist. The file is in use by another process, or an I/O error occurs. The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. A row cannot be parsed using the specified format. The exception message specifies the line causing the exception, while the property is assigned the text contained in the line. The user lacks necessary permissions to view the path. to read the specified file. The method allows you to create a object, which provides a way to easily and efficiently parse structured text files, such as logs. The object can be used to read both delimited and fixed-width files. The file to be opened with the . Delimiters for the fields. The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\); it ends with a trailing slash. is . The file does not exist. The file is in use by another process, or an I/O error occurs. The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. A row cannot be parsed using the specified format. The exception message specifies the line causing the exception, while the property is assigned the text contained in the line. The user lacks necessary permissions to view the path. to read the specified file. The method allows you to create a object, which provides a way to easily and efficiently parse structured text files, such as logs. The object can be used to read both delimited and fixed-width files. The file to be opened with the . The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\); it ends with a trailing slash. is . The file does not exist. The file is in use by another process, or an I/O error occurs. The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. A row cannot be parsed using the specified format. The exception message specifies the line causing the exception, while the property is assigned the text contained in the line. The user lacks necessary permissions to view the path. to read the specified file. Opens a object to read from a file. File to be read. The encoding to use for the file contents. Default is ASCII. The file name ends with a backslash (\). The specified file cannot be found. The user lacks necessary permissions to read from the file. object to read from the file. Opens a object to read from a file. File to be read. The file name ends with a backslash (\). The specified file cannot be found. The user lacks necessary permissions to read from the file. object to read from the file. Opens a to write to the specified file. File to be written to. to append to the contents in the file; to overwrite the contents of the file. Default is . Encoding to be used in writing to the file. Default is ASCII. The file name ends with a trailing slash. object to write to the specified file. Opens a object to write to the specified file. File to be written to. to append to the contents of the file; to overwrite the contents of the file. Default is . The file name ends with a trailing slash. object to write to the specified file. Returns the contents of a file as a byte array. File to be read. The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\); it ends with a trailing slash. is . The file does not exist. The file is in use by another process, or an I/O error occurs. The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. There is not enough memory to write the string to buffer. The user lacks necessary permissions to view the path. array containing the contents of the file. Returns the contents of a text file as a . Name and path of the file to read. Character encoding to use in reading the file. Default is UTF-8. The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\); it ends with a trailing slash. is . The file does not exist. The file is in use by another process, or an I/O error occurs. The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. There is not enough memory to write the string to buffer. The user lacks necessary permissions to view the path. containing the contents of the file. Returns the contents of a text file as a . Name and path of the file to read. The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\); it ends with a trailing slash. is . The file does not exist. The file is in use by another process, or an I/O error occurs. The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. There is not enough memory to write the string to buffer. The user lacks necessary permissions to view the path. containing the contents of the file. Renames a directory. Path and name of directory to be renamed. New name for directory. contains path information. is . -or- is or an empty string. The directory does not exist. There is an existing file or directory with the name specified in . The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. The user lacks necessary permissions to view the path. The user does not have required permission. Renames a file. File to be renamed. New name of file. contains path information or ends with a backslash (\). is . -or- is or an empty string. The file does not exist. There is an existing file or directory with the name specified in . The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. The user lacks necessary permissions to view the path. The user does not have required permission. Writes data to a binary file. Path and name of the file to be written to. Data to be written to the file. to append to the file contents; to overwrite the file contents. Default is . The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\); it ends with a trailing slash. is . The file does not exist. The file is in use by another process, or an I/O error occurs. The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. There is not enough memory to write the string to buffer. The user lacks necessary permissions to view the path. Writes text to a file. File to be written to. Text to be written to file. to append to the contents of the file; to overwrite the contents of the file. Default is . What encoding to use when writing to file. Default is UTF-8. The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\); it ends with a trailing slash. is . The file does not exist. The file is in use by another process, or an I/O error occurs. The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. There is not enough memory to write the string to buffer. The user lacks necessary permissions to view the path. Writes text to a file. File to be written to. Text to be written to file. to append to the contents of the file; to overwrite the contents of the file. Default is . The path is not valid for one of the following reasons: it is a zero-length string; it contains only white space; it contains invalid characters; or it is a device path (starts with \\.\); it ends with a trailing slash. is . The file does not exist. The file is in use by another process, or an I/O error occurs. The path exceeds the system-defined maximum length. A file or directory name in the path contains a colon (:) or is in an invalid format. There is not enough memory to write the string to buffer. The user lacks necessary permissions to view the path. Gets or sets the current directory. The path is not valid. The user lacks necessary permissions. The current directory for file I/O operations. Returns a read-only collection of all available drive names. A read-only collection of all available drives as objects. Gets an object that provides properties for accessing commonly referenced directories. This property returns the object for the computer. This class supports in Visual Basic. The type of the object to store. This class supports in Visual Basic. This property supports in Visual Basic. The value associated with this class. Provides properties and methods for manipulating the registry. Gets a value from a registry key. . Key from which the value is to be retrieved. Required. . Value to be retrieved. Required. . Default value to be supplied if the value does not exist. Required. The user does not have the permissions required to read from the registry key. The that contains the specified value has been marked for deletion. does not begin with a valid registry root. Gets a value from a registry key. Writes a value to a registry key. . Name of the key to be written to. Required. . Name of the value to be written. Required. . Value to be written. Required. . Required. is . does not begin with a valid registry root. -or- is longer than the maximum length allowed (255 characters). -or- The type of does not match the registry data type specified by , therefore the data cannot be converted properly. The is read-only, and thus cannot be written to; for example, it is a root-level node, or it has not been opened with write access. The user does not have the permissions required to create or modify registry keys. Writes a value to a registry key. . Name of the key to be written to. Required. . Name of the value to be written. Required. . Value to be written. Required. is . does not begin with a valid registry root. -or- is longer than the maximum length allowed (255 characters). The is read-only and thus cannot be written to; for example, it is a root-level node, or it has not been opened with write access. The user does not have the permissions required to create or modify registry keys. Returns a type which provides access to . Returns a type which provides access to . Returns a type which provides access to . Returns a type, which provides access to . Returns a type, which provides access to . Returns a type, which provides access to . Provides properties for accessing commonly referenced directories. Gets a path name pointing to the Application Data directory for the all users. The path is empty, usually because the operating system does not support the directory. The path to the Application Data directory for the all users. Gets a path name pointing to the Application Data directory for the current user. The path is empty, usually because the operating system does not support the directory. The path to the Application Data directory for the current user. Gets a path name pointing to the Desktop directory. The path is empty, usually because the operating system does not support the directory. The path to the Desktop directory. Gets a path name pointing to the My Documents directory. The path is empty, usually because the operating system does not support the directory. The path to the My Documents directory. Gets a path name pointing to the My Music directory. The path is empty, usually because the operating system does not support the directory. The path to the My Music directory. Gets a path name pointing to the My Pictures directory. The path is empty, usually because the operating system does not support the directory. The path to the My Pictures directory. Gets a path pointing to the Program Files directory. The path is empty, usually because the operating system does not support the directory. The path to the Program Files directory. Gets a path name pointing to the Programs directory. The path is empty, usually because the operating system does not support the directory. The path to the Programs directory. Gets a path name pointing to the Temp directory. The path is empty, usually because the operating system does not support the directory. The path to the Temp directory.