Export (0) Print
Expand All

Constants Class

The Constants module contains miscellaneous constants. These constants can be used anywhere in your code.

System.Object
  Microsoft.VisualBasic.Constants

Namespace:  Microsoft.VisualBasic
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

[StandardModuleAttribute]
public sealed class Constants

The Constants type exposes the following members.

  NameDescription
Public methodEquals(Object)Determines 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 the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public fieldStatic membervbArrayIndicates the type of a variant object, returned by the VarType function.
Public fieldStatic membervbBackRepresents a backspace character for print and display functions.
Public fieldStatic membervbBinaryCompareIndicates how to compare strings when calling comparison functions.
Public fieldStatic membervbBooleanIndicates the type of a variant object, returned by the VarType function.
Public fieldStatic membervbByteIndicates the type of a variant object, returned by the VarType function.
Public fieldStatic membervbCrRepresents a carriage-return character for print and display functions.
Public fieldStatic membervbCrLfRepresents a carriage-return character combined with a linefeed character for print and display functions.
Public fieldStatic membervbCurrencyIndicates the type of a variant object, returned by the VarType function.
Public fieldStatic membervbDateIndicates the type of a variant object, returned by the VarType function.
Public fieldStatic membervbDecimalIndicates the type of a variant object, returned by the VarType function.
Public fieldStatic membervbDoubleIndicates the type of a variant object, returned by the VarType function.
Public fieldStatic membervbEmptyIndicates the type of a variant object, returned by the VarType function.
Public fieldStatic membervbFalseIndicates a Boolean value or whether the default should be used when calling number-formatting functions.
Public fieldStatic membervbFirstFourDaysIndicates the first week of the year to use when calling date-related functions.
Public fieldStatic membervbFirstFullWeekIndicates the first week of the year to use when calling date-related functions.
Public fieldStatic membervbFirstJan1Indicates the first week of the year to use when calling date-related functions.
Public fieldStatic membervbFormFeedRepresents a form-feed character for print functions.
Public fieldStatic membervbFridayIndicates the first day of the week to use when calling date-related functions.
Public fieldStatic membervbGeneralDateIndicates how to display dates when calling the FormatDateTime function.
Public fieldStatic membervbGetIndicates the type of procedure being invoked.
Public fieldStatic membervbIntegerIndicates the type of a variant object, returned by the VarType function.
Public fieldStatic membervbLetIndicates the type of procedure being invoked.
Public fieldStatic membervbLfRepresents a linefeed character for print and display functions.
Public fieldStatic membervbLongIndicates the type of a variant object, returned by the VarType function.
Public fieldStatic membervbLongDateIndicates how to display dates when calling the FormatDateTime function.
Public fieldStatic membervbLongTimeIndicates how to display dates when calling the FormatDateTime function.
Public fieldStatic membervbMethodIndicates the type of procedure being invoked.
Public fieldStatic membervbMondayIndicates the first day of the week to use when calling date-related functions.
Public fieldStatic membervbNewLineRepresents a newline character for print and display functions.
Public fieldStatic membervbNullIndicates the type of a variant object, returned by the VarType function.
Public fieldStatic membervbNullCharRepresents a null character for print and display functions.
Public fieldStatic membervbNullStringRepresents a zero-length string for print and display functions, and for calling external procedures.
Public fieldStatic membervbObjectIndicates the type of a variant object, returned by the VarType function.
Public fieldStatic membervbObjectErrorRepresents the object error number. User-defined error numbers should be greater than this value.
Public fieldStatic membervbSaturdayIndicates the first day of the week to use when calling date-related functions.
Public fieldStatic membervbSetIndicates the type of procedure being invoked.
Public fieldStatic membervbShortDateIndicates how to display dates when calling the FormatDateTime function.
Public fieldStatic membervbShortTimeIndicates how to display dates when calling the FormatDateTime function.
Public fieldStatic membervbSingleIndicates the type of a variant object, returned by the VarType function.
Public fieldStatic membervbStringIndicates the type of a variant object, returned by the VarType function.
Public fieldStatic membervbSundayIndicates the first day of the week to use when calling date-related functions.
Public fieldStatic membervbTabRepresents a tab character for print and display functions.
Public fieldStatic membervbTextCompareIndicates how to compare strings when calling comparison functions.
Public fieldStatic membervbThursdayIndicates the first day of the week to use when calling date-related functions.
Public fieldStatic membervbTrueIndicates a Boolean value or whether the default should be used when calling number-formatting functions.
Public fieldStatic membervbTuesdayIndicates the first day of the week to use when calling date-related functions.
Public fieldStatic membervbUseDefaultIndicates a Boolean value or whether the default should be used when calling number-formatting functions.
Public fieldStatic membervbUserDefinedTypeIndicates the type of a variant object, returned by the VarType function.
Public fieldStatic membervbUseSystemIndicates the first week of the year to use when calling date-related functions.
Public fieldStatic membervbUseSystemDayOfWeekIndicates the first day of the week to use when calling date-related functions.
Public fieldStatic membervbVariantIndicates the type of a variant object, returned by the VarType function.
Public fieldStatic membervbVerticalTabRepresents a carriage-return character for print functions.
Public fieldStatic membervbWednesdayIndicates the first day of the week to use when calling date-related functions.
Top

This module supports the Visual Basic language constants that correspond to the members of many Visual Basic enumerations:

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

Show:
© 2014 Microsoft