Microsoft.VisualBasic Namespace

Provides classes and modules that support programming in Visual Basic. This namespace includes types for language-specific features, COM interoperability, file I/O, and more.

Classes

ArrayList

Add (Object value) Appends an object to the end of the ArrayList.
Clear () Removes all elements from the ArrayList.
Count get Gets the number of elements actually contained in the ArrayList.

Console

WriteLine (String value) Writes the specified string value, followed by the current line terminator, to the standard output stream.
ReadLine () Reads the next line of characters from the standard input stream and returns them as a string.

File

ReadAllText (String path) Opens a text file, reads all lines of the file, and then closes the file.
WriteAllText (String path, String contents) Creates a new file or overwrites the contents of an existing file with the specified contents.

Modules

Strings

Left (String str, Integer length) Returns a string containing the specified number of characters from the left side of a string.
Right (String str, Integer length) Returns a string containing the specified number of characters from the right side of a string.
Replace (String original, String pattern, String replacement) Returns a string in which all occurrences of a specified substring in another string are replaced with another substring.

FileSystem

FileExists (String PathName) Returns a Boolean value indicating whether a file exists.
Kill (String PathName) Deletes a file.

Interfaces

IConvertible

GetTypeCode () Returns the general type of the current instance.
ToBoolean (IFormatProvider provider) Converts the value of this instance to an equivalent Boolean value.