Last active
May 31, 2018 23:43
-
-
Save danmoseley/d8fb8397093f0c4ae0bb12af740cfb3e to your computer and use it in GitHub Desktop.
members present in Microsoft.VisualBasic.dll/Microsoft.CSharp.dll in .NET Framework that are not in .NET Core
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Microsoft.VisualBasic { | |
public enum AppWinStyle : short { | |
Hide = (short)0, | |
MaximizedFocus = (short)3, | |
MinimizedFocus = (short)2, | |
MinimizedNoFocus = (short)6, | |
NormalFocus = (short)1, | |
NormalNoFocus = (short)4, | |
} | |
public enum AudioPlayMode { | |
Background = 1, | |
BackgroundLoop = 2, | |
WaitToComplete = 0, | |
} | |
public sealed class Collection : ICollection, IDeserializationCallback, IList, ISerializable { | |
public Collection(); | |
public int Count { get; } | |
int ICollectionCount { get; } | |
bool ICollectionIsSynchronized { get; } | |
object ICollectionSyncRoot { get; } | |
bool IListIsFixedSize { get; } | |
bool IListIsReadOnly { get; } | |
object this[int index] { get; set; } | |
public object this[int Index] { get; } | |
public object this[object Index] { get; } | |
public object this[string Key] { get; } | |
public void Add(object Item, string Key=null, object Before=null, object After=null); | |
public void Clear(); | |
public bool Contains(string Key); | |
public IEnumerator GetEnumerator(); | |
void GetObjectData(SerializationInfo info, StreamingContext context); | |
void ICollectionCopyTo(Array array, int index); | |
IEnumerator ICollectionGetEnumerator(); | |
int IListAdd(object value); | |
void IListClear(); | |
bool IListContains(object value); | |
int IListIndexOf(object value); | |
void IListInsert(int index, object value); | |
void IListRemove(object value); | |
void IListRemoveAt(int index); | |
void OnDeserialization(object sender); | |
public void Remove(int Index); | |
public void Remove(string Key); | |
} | |
public sealed class ComClassAttribute : Attribute { | |
public ComClassAttribute(); | |
public ComClassAttribute(string _ClassID); | |
public ComClassAttribute(string _ClassID, string _InterfaceID); | |
public ComClassAttribute(string _ClassID, string _InterfaceID, string _EventId); | |
public string ClassID { get; } | |
public string EventID { get; } | |
public string InterfaceID { get; } | |
public bool InterfaceShadows { get; set; } | |
} | |
public enum CompareMethod { | |
Binary = 0, | |
Text = 1, | |
} | |
public sealed class Constants { | |
public const AppWinStyle vbHide = (short)0; | |
public const AppWinStyle vbMaximizedFocus = (short)3; | |
public const AppWinStyle vbMinimizedFocus = (short)2; | |
public const AppWinStyle vbMinimizedNoFocus = (short)6; | |
public const AppWinStyle vbNormalFocus = (short)1; | |
public const AppWinStyle vbNormalNoFocus = (short)4; | |
public const CallType vbGet = 2; | |
public const CallType vbLet = 4; | |
public const CallType vbMethod = 1; | |
public const CallType vbSet = 8; | |
public const CompareMethod vbBinaryCompare = 0; | |
public const CompareMethod vbTextCompare = 1; | |
public const DateFormat vbGeneralDate = 0; | |
public const DateFormat vbLongDate = 1; | |
public const DateFormat vbLongTime = 3; | |
public const DateFormat vbShortDate = 2; | |
public const DateFormat vbShortTime = 4; | |
public const FileAttribute vbArchive = 32; | |
public const FileAttribute vbDirectory = 16; | |
public const FileAttribute vbHidden = 2; | |
public const FileAttribute vbNormal = 0; | |
public const FileAttribute vbReadOnly = 1; | |
public const FileAttribute vbSystem = 4; | |
public const FileAttribute vbVolume = 8; | |
public const FirstDayOfWeek vbFriday = 6; | |
public const FirstDayOfWeek vbMonday = 2; | |
public const FirstDayOfWeek vbSaturday = 7; | |
public const FirstDayOfWeek vbSunday = 1; | |
public const FirstDayOfWeek vbThursday = 5; | |
public const FirstDayOfWeek vbTuesday = 3; | |
public const FirstDayOfWeek vbUseSystemDayOfWeek = 0; | |
public const FirstDayOfWeek vbWednesday = 4; | |
public const FirstWeekOfYear vbFirstFourDays = 2; | |
public const FirstWeekOfYear vbFirstFullWeek = 3; | |
public const FirstWeekOfYear vbFirstJan1 = 1; | |
public const FirstWeekOfYear vbUseSystem = 0; | |
public const MsgBoxResult vbAbort = 3; | |
public const MsgBoxResult vbCancel = 2; | |
public const MsgBoxResult vbIgnore = 5; | |
public const MsgBoxResult vbNo = 7; | |
public const MsgBoxResult vbOK = 1; | |
public const MsgBoxResult vbRetry = 4; | |
public const MsgBoxResult vbYes = 6; | |
public const MsgBoxStyle vbAbortRetryIgnore = 2; | |
public const MsgBoxStyle vbApplicationModal = 0; | |
public const MsgBoxStyle vbCritical = 16; | |
public const MsgBoxStyle vbDefaultButton1 = 0; | |
public const MsgBoxStyle vbDefaultButton2 = 256; | |
public const MsgBoxStyle vbDefaultButton3 = 512; | |
public const MsgBoxStyle vbExclamation = 48; | |
public const MsgBoxStyle vbInformation = 64; | |
public const MsgBoxStyle vbMsgBoxHelp = 16384; | |
public const MsgBoxStyle vbMsgBoxRight = 524288; | |
public const MsgBoxStyle vbMsgBoxRtlReading = 1048576; | |
public const MsgBoxStyle vbMsgBoxSetForeground = 65536; | |
public const MsgBoxStyle vbOKCancel = 1; | |
public const MsgBoxStyle vbOKOnly = 0; | |
public const MsgBoxStyle vbQuestion = 32; | |
public const MsgBoxStyle vbRetryCancel = 5; | |
public const MsgBoxStyle vbSystemModal = 4096; | |
public const MsgBoxStyle vbYesNo = 4; | |
public const MsgBoxStyle vbYesNoCancel = 3; | |
public const TriState vbFalse = 0; | |
public const TriState vbTrue = -1; | |
public const TriState vbUseDefault = -2; | |
public const VariantType vbArray = 8192; | |
public const VariantType vbBoolean = 11; | |
public const VariantType vbByte = 17; | |
public const VariantType vbCurrency = 6; | |
public const VariantType vbDate = 7; | |
public const VariantType vbDecimal = 14; | |
public const VariantType vbDouble = 5; | |
public const VariantType vbEmpty = 0; | |
public const VariantType vbInteger = 3; | |
public const VariantType vbLong = 20; | |
public const VariantType vbNull = 1; | |
public const VariantType vbObject = 9; | |
public const VariantType vbSingle = 4; | |
public const VariantType vbString = 8; | |
public const VariantType vbUserDefinedType = 36; | |
public const VariantType vbVariant = 12; | |
public const VbStrConv vbHiragana = 32; | |
public const VbStrConv vbKatakana = 16; | |
public const VbStrConv vbLinguisticCasing = 1024; | |
public const VbStrConv vbLowerCase = 2; | |
public const VbStrConv vbNarrow = 8; | |
public const VbStrConv vbProperCase = 3; | |
public const VbStrConv vbSimplifiedChinese = 256; | |
public const VbStrConv vbTraditionalChinese = 512; | |
public const VbStrConv vbUpperCase = 1; | |
public const VbStrConv vbWide = 4; | |
public const int vbObjectError = -2147221504; | |
} | |
public sealed class ControlChars { | |
public const char Back = '\b'; | |
public const char Cr = '\r'; | |
public const char FormFeed = '\f'; | |
public const char Lf = '\n'; | |
public const char NullChar = '\0'; | |
public const char Quote = '"'; | |
public const char Tab = '\t'; | |
public const char VerticalTab = '\v'; | |
public const string CrLf = "\r\n"; | |
public const string NewLine = "\r\n"; | |
public ControlChars(); | |
} | |
public sealed class Conversion { | |
public static object CTypeDynamic(object Expression, Type TargetType); | |
public static TargetType CTypeDynamic<TargetType>(object Expression); | |
public static string ErrorToString(); | |
public static string ErrorToString(int ErrorNumber); | |
public static decimal Fix(decimal Number); | |
public static double Fix(double Number); | |
public static short Fix(short Number); | |
public static int Fix(int Number); | |
public static long Fix(long Number); | |
public static object Fix(object Number); | |
public static float Fix(float Number); | |
public static string Hex(byte Number); | |
public static string Hex(short Number); | |
public static string Hex(int Number); | |
public static string Hex(long Number); | |
public static string Hex(object Number); | |
public static string Hex(sbyte Number); | |
public static string Hex(ushort Number); | |
public static string Hex(uint Number); | |
public static string Hex(ulong Number); | |
public static decimal Int(decimal Number); | |
public static double Int(double Number); | |
public static short Int(short Number); | |
public static int Int(int Number); | |
public static long Int(long Number); | |
public static object Int(object Number); | |
public static float Int(float Number); | |
public static string Oct(byte Number); | |
public static string Oct(short Number); | |
public static string Oct(int Number); | |
public static string Oct(long Number); | |
public static string Oct(object Number); | |
public static string Oct(sbyte Number); | |
public static string Oct(ushort Number); | |
public static string Oct(uint Number); | |
public static string Oct(ulong Number); | |
public static string Str(object Number); | |
public static int Val(char Expression); | |
public static double Val(object Expression); | |
public static double Val(string InputStr); | |
} | |
public sealed class DateAndTime { | |
public static string DateString { get; set; } | |
public static DateTime Now { get; } | |
public static DateTime TimeOfDay { get; set; } | |
public static double Timer { get; } | |
public static string TimeString { get; set; } | |
public static DateTime Today { get; set; } | |
public static DateTime DateAdd(DateInterval Interval, double Number, DateTime DateValue); | |
public static DateTime DateAdd(string Interval, double Number, object DateValue); | |
public static long DateDiff(DateInterval Interval, DateTime Date1, DateTime Date2, FirstDayOfWeek DayOfWeek=(FirstDayOfWeek)(1), FirstWeekOfYear WeekOfYear=(FirstWeekOfYear)(1)); | |
public static long DateDiff(string Interval, object Date1, object Date2, FirstDayOfWeek DayOfWeek=(FirstDayOfWeek)(1), FirstWeekOfYear WeekOfYear=(FirstWeekOfYear)(1)); | |
public static int DatePart(DateInterval Interval, DateTime DateValue, FirstDayOfWeek FirstDayOfWeekValue=(FirstDayOfWeek)(1), FirstWeekOfYear FirstWeekOfYearValue=(FirstWeekOfYear)(1)); | |
public static int DatePart(string Interval, object DateValue, FirstDayOfWeek DayOfWeek=(FirstDayOfWeek)(1), FirstWeekOfYear WeekOfYear=(FirstWeekOfYear)(1)); | |
public static DateTime DateSerial(int Year, int Month, int Day); | |
public static DateTime DateValue(string StringDate); | |
public static int Day(DateTime DateValue); | |
public static int Hour(DateTime TimeValue); | |
public static int Minute(DateTime TimeValue); | |
public static int Month(DateTime DateValue); | |
public static string MonthName(int Month, bool Abbreviate=false); | |
public static int Second(DateTime TimeValue); | |
public static DateTime TimeSerial(int Hour, int Minute, int Second); | |
public static DateTime TimeValue(string StringTime); | |
public static int Weekday(DateTime DateValue, FirstDayOfWeek DayOfWeek=(FirstDayOfWeek)(1)); | |
public static string WeekdayName(int Weekday, bool Abbreviate=false, FirstDayOfWeek FirstDayOfWeekValue=(FirstDayOfWeek)(0)); | |
public static int Year(DateTime DateValue); | |
} | |
public enum DateFormat { | |
GeneralDate = 0, | |
LongDate = 1, | |
LongTime = 3, | |
ShortDate = 2, | |
ShortTime = 4, | |
} | |
public enum DateInterval { | |
Day = 4, | |
DayOfYear = 3, | |
Hour = 7, | |
Minute = 8, | |
Month = 2, | |
Quarter = 1, | |
Second = 9, | |
Weekday = 6, | |
WeekOfYear = 5, | |
Year = 0, | |
} | |
public enum DueDate { | |
BegOfPeriod = 1, | |
EndOfPeriod = 0, | |
} | |
public sealed class ErrObject { | |
public string Description { get; set; } | |
public int Erl { get; } | |
public int HelpContext { get; set; } | |
public string HelpFile { get; set; } | |
public int LastDllError { get; } | |
public int Number { get; set; } | |
public string Source { get; set; } | |
public void Clear(); | |
public Exception GetException(); | |
public void Raise(int Number, object Source=null, object Description=null, object HelpFile=null, object HelpContext=null); | |
} | |
public enum FileAttribute { | |
Archive = 32, | |
Directory = 16, | |
Hidden = 2, | |
Normal = 0, | |
ReadOnly = 1, | |
System = 4, | |
Volume = 8, | |
} | |
public sealed class FileSystem { | |
public static void ChDir(string Path); | |
public static void ChDrive(char Drive); | |
public static void ChDrive(string Drive); | |
public static string CurDir(); | |
public static string CurDir(char Drive); | |
public static string Dir(); | |
public static string Dir(string PathName, FileAttribute Attributes=(FileAttribute)(0)); | |
public static bool EOF(int FileNumber); | |
public static OpenMode FileAttr(int FileNumber); | |
public static void FileClose(params int[] FileNumbers); | |
public static void FileCopy(string Source, string Destination); | |
public static DateTime FileDateTime(string PathName); | |
public static void FileGet(int FileNumber, ref Array Value, long RecordNumber=(long)-1, bool ArrayIsDynamic=false, bool StringIsFixedLength=false); | |
public static void FileGet(int FileNumber, ref bool Value, long RecordNumber=(long)-1); | |
public static void FileGet(int FileNumber, ref byte Value, long RecordNumber=(long)-1); | |
public static void FileGet(int FileNumber, ref char Value, long RecordNumber=(long)-1); | |
public static void FileGet(int FileNumber, ref DateTime Value, long RecordNumber=(long)-1); | |
public static void FileGet(int FileNumber, ref decimal Value, long RecordNumber=(long)-1); | |
public static void FileGet(int FileNumber, ref double Value, long RecordNumber=(long)-1); | |
public static void FileGet(int FileNumber, ref short Value, long RecordNumber=(long)-1); | |
public static void FileGet(int FileNumber, ref int Value, long RecordNumber=(long)-1); | |
public static void FileGet(int FileNumber, ref long Value, long RecordNumber=(long)-1); | |
public static void FileGet(int FileNumber, ref float Value, long RecordNumber=(long)-1); | |
public static void FileGet(int FileNumber, ref string Value, long RecordNumber=(long)-1, bool StringIsFixedLength=false); | |
public static void FileGet(int FileNumber, ref ValueType Value, long RecordNumber=(long)-1); | |
public static void FileGetObject(int FileNumber, ref object Value, long RecordNumber=(long)-1); | |
public static long FileLen(string PathName); | |
public static void FileOpen(int FileNumber, string FileName, OpenMode Mode, OpenAccess Access=(OpenAccess)(-1), OpenShare Share=(OpenShare)(-1), int RecordLength=-1); | |
public static void FilePut(int FileNumber, Array Value, long RecordNumber=(long)-1, bool ArrayIsDynamic=false, bool StringIsFixedLength=false); | |
public static void FilePut(int FileNumber, bool Value, long RecordNumber=(long)-1); | |
public static void FilePut(int FileNumber, byte Value, long RecordNumber=(long)-1); | |
public static void FilePut(int FileNumber, char Value, long RecordNumber=(long)-1); | |
public static void FilePut(int FileNumber, DateTime Value, long RecordNumber=(long)-1); | |
public static void FilePut(int FileNumber, decimal Value, long RecordNumber=(long)-1); | |
public static void FilePut(int FileNumber, double Value, long RecordNumber=(long)-1); | |
public static void FilePut(int FileNumber, short Value, long RecordNumber=(long)-1); | |
public static void FilePut(int FileNumber, int Value, long RecordNumber=(long)-1); | |
public static void FilePut(int FileNumber, long Value, long RecordNumber=(long)-1); | |
public static void FilePut(int FileNumber, float Value, long RecordNumber=(long)-1); | |
public static void FilePut(int FileNumber, string Value, long RecordNumber=(long)-1, bool StringIsFixedLength=false); | |
public static void FilePut(int FileNumber, ValueType Value, long RecordNumber=(long)-1); | |
public static void FilePut(object FileNumber, object Value, object RecordNumber=-1); | |
public static void FilePutObject(int FileNumber, object Value, long RecordNumber=(long)-1); | |
public static void FileWidth(int FileNumber, int RecordWidth); | |
public static int FreeFile(); | |
public static FileAttribute GetAttr(string PathName); | |
public static void Input(int FileNumber, ref bool Value); | |
public static void Input(int FileNumber, ref byte Value); | |
public static void Input(int FileNumber, ref char Value); | |
public static void Input(int FileNumber, ref DateTime Value); | |
public static void Input(int FileNumber, ref decimal Value); | |
public static void Input(int FileNumber, ref double Value); | |
public static void Input(int FileNumber, ref short Value); | |
public static void Input(int FileNumber, ref int Value); | |
public static void Input(int FileNumber, ref long Value); | |
public static void Input(int FileNumber, ref object Value); | |
public static void Input(int FileNumber, ref float Value); | |
public static void Input(int FileNumber, ref string Value); | |
public static string InputString(int FileNumber, int CharCount); | |
public static void Kill(string PathName); | |
public static string LineInput(int FileNumber); | |
public static long Loc(int FileNumber); | |
public static void Lock(int FileNumber); | |
public static void Lock(int FileNumber, long Record); | |
public static void Lock(int FileNumber, long FromRecord, long ToRecord); | |
public static long LOF(int FileNumber); | |
public static void MkDir(string Path); | |
public static void Print(int FileNumber, params object[] Output); | |
public static void PrintLine(int FileNumber, params object[] Output); | |
public static void Rename(string OldPath, string NewPath); | |
public static void Reset(); | |
public static void RmDir(string Path); | |
public static long Seek(int FileNumber); | |
public static void Seek(int FileNumber, long Position); | |
public static void SetAttr(string PathName, FileAttribute Attributes); | |
public static SpcInfo SPC(short Count); | |
public static TabInfo TAB(); | |
public static TabInfo TAB(short Column); | |
public static void Unlock(int FileNumber); | |
public static void Unlock(int FileNumber, long Record); | |
public static void Unlock(int FileNumber, long FromRecord, long ToRecord); | |
public static void Write(int FileNumber, params object[] Output); | |
public static void WriteLine(int FileNumber, params object[] Output); | |
} | |
public sealed class Financial { | |
public static double DDB(double Cost, double Salvage, double Life, double Period, double Factor=2); | |
public static double FV(double Rate, double NPer, double Pmt, double PV=0, DueDate Due=(DueDate)(0)); | |
public static double IPmt(double Rate, double Per, double NPer, double PV, double FV=0, DueDate Due=(DueDate)(0)); | |
public static double IRR(ref double[] ValueArray, double Guess=0.1); | |
public static double MIRR(ref double[] ValueArray, double FinanceRate, double ReinvestRate); | |
public static double NPer(double Rate, double Pmt, double PV, double FV=0, DueDate Due=(DueDate)(0)); | |
public static double NPV(double Rate, ref double[] ValueArray); | |
public static double Pmt(double Rate, double NPer, double PV, double FV=0, DueDate Due=(DueDate)(0)); | |
public static double PPmt(double Rate, double Per, double NPer, double PV, double FV=0, DueDate Due=(DueDate)(0)); | |
public static double PV(double Rate, double NPer, double Pmt, double FV=0, DueDate Due=(DueDate)(0)); | |
public static double Rate(double NPer, double Pmt, double PV, double FV=0, DueDate Due=(DueDate)(0), double Guess=0.1); | |
public static double SLN(double Cost, double Salvage, double Life); | |
public static double SYD(double Cost, double Salvage, double Life, double Period); | |
} | |
public enum FirstDayOfWeek { | |
Friday = 6, | |
Monday = 2, | |
Saturday = 7, | |
Sunday = 1, | |
System = 0, | |
Thursday = 5, | |
Tuesday = 3, | |
Wednesday = 4, | |
} | |
public enum FirstWeekOfYear { | |
FirstFourDays = 2, | |
FirstFullWeek = 3, | |
Jan1 = 1, | |
System = 0, | |
} | |
public sealed class Globals { | |
public static string ScriptEngine { get; } | |
public static int ScriptEngineBuildVersion { get; } | |
public static int ScriptEngineMajorVersion { get; } | |
public static int ScriptEngineMinorVersion { get; } | |
} | |
public sealed class Information { | |
public static int Erl(); | |
public static ErrObject Err(); | |
public static bool IsArray(object VarName); | |
public static bool IsDate(object Expression); | |
public static bool IsDBNull(object Expression); | |
public static bool IsError(object Expression); | |
public static bool IsNothing(object Expression); | |
public static bool IsNumeric(object Expression); | |
public static bool IsReference(object Expression); | |
public static int LBound(Array Array, int Rank=1); | |
public static int QBColor(int Color); | |
public static int RGB(int Red, int Green, int Blue); | |
public static string SystemTypeName(string VbName); | |
public static string TypeName(object VarName); | |
public static int UBound(Array Array, int Rank=1); | |
public static VariantType VarType(object VarName); | |
public static string VbTypeName(string UrtName); | |
} | |
public sealed class Interaction { | |
public static void AppActivate(int ProcessId); | |
public static void AppActivate(string Title); | |
public static void Beep(); | |
public static object CallByName(object ObjectRef, string ProcName, CallType UseCallType, params object[] Args); | |
public static object Choose(double Index, params object[] Choice); | |
public static string Command(); | |
public static object CreateObject(string ProgId, string ServerName=""); | |
public static void DeleteSetting(string AppName, string Section=null, string Key=null); | |
public static string Environ(int Expression); | |
public static string Environ(string Expression); | |
public static string[,] GetAllSettings(string AppName, string Section); | |
public static object GetObject(string PathName=null, string Class=null); | |
public static string GetSetting(string AppName, string Section, string Key, string Default=""); | |
public static object IIf(bool Expression, object TruePart, object FalsePart); | |
public static string InputBox(string Prompt, string Title="", string DefaultResponse="", int XPos=-1, int YPos=-1); | |
public static MsgBoxResult MsgBox(object Prompt, MsgBoxStyle Buttons=(MsgBoxStyle)(0), object Title=null); | |
public static string Partition(long Number, long Start, long Stop, long Interval); | |
public static void SaveSetting(string AppName, string Section, string Key, string Setting); | |
public static int Shell(string PathName, AppWinStyle Style=(AppWinStyle)(2), bool Wait=false, int Timeout=-1); | |
public static object Switch(params object[] VarExpr); | |
} | |
public enum MsgBoxResult { | |
Abort = 3, | |
Cancel = 2, | |
Ignore = 5, | |
No = 7, | |
Ok = 1, | |
Retry = 4, | |
Yes = 6, | |
} | |
public enum MsgBoxStyle { | |
AbortRetryIgnore = 2, | |
ApplicationModal = 0, | |
Critical = 16, | |
DefaultButton1 = 0, | |
DefaultButton2 = 256, | |
DefaultButton3 = 512, | |
Exclamation = 48, | |
Information = 64, | |
MsgBoxHelp = 16384, | |
MsgBoxRight = 524288, | |
MsgBoxRtlReading = 1048576, | |
MsgBoxSetForeground = 65536, | |
OkCancel = 1, | |
OkOnly = 0, | |
Question = 32, | |
RetryCancel = 5, | |
SystemModal = 4096, | |
YesNo = 4, | |
YesNoCancel = 3, | |
} | |
public sealed class MyGroupCollectionAttribute : Attribute { | |
public MyGroupCollectionAttribute(string typeToCollect, string createInstanceMethodName, string disposeInstanceMethodName, string defaultInstanceAlias); | |
public string CreateMethod { get; } | |
public string DefaultInstanceAlias { get; } | |
public string DisposeMethod { get; } | |
public string MyGroupName { get; } | |
} | |
public enum OpenAccess { | |
Default = -1, | |
Read = 1, | |
ReadWrite = 3, | |
Write = 2, | |
} | |
public enum OpenMode { | |
Append = 8, | |
Binary = 32, | |
Input = 1, | |
Output = 2, | |
Random = 4, | |
} | |
public enum OpenShare { | |
Default = -1, | |
LockRead = 2, | |
LockReadWrite = 0, | |
LockWrite = 1, | |
Shared = 3, | |
} | |
public struct SpcInfo { | |
public short Count; | |
} | |
public sealed class Strings { | |
public static int Asc(char String); | |
public static int Asc(string String); | |
public static char Chr(int CharCode); | |
public static string[] Filter(object[] Source, string Match, bool Include=true, CompareMethod Compare=(CompareMethod)(0)); | |
public static string[] Filter(string[] Source, string Match, bool Include=true, CompareMethod Compare=(CompareMethod)(0)); | |
public static string Format(object Expression, string Style=""); | |
public static string FormatCurrency(object Expression, int NumDigitsAfterDecimal=-1, TriState IncludeLeadingDigit=(TriState)(-2), TriState UseParensForNegativeNumbers=(TriState)(-2), TriState GroupDigits=(TriState)(-2)); | |
public static string FormatDateTime(DateTime Expression, DateFormat NamedFormat=(DateFormat)(0)); | |
public static string FormatNumber(object Expression, int NumDigitsAfterDecimal=-1, TriState IncludeLeadingDigit=(TriState)(-2), TriState UseParensForNegativeNumbers=(TriState)(-2), TriState GroupDigits=(TriState)(-2)); | |
public static string FormatPercent(object Expression, int NumDigitsAfterDecimal=-1, TriState IncludeLeadingDigit=(TriState)(-2), TriState UseParensForNegativeNumbers=(TriState)(-2), TriState GroupDigits=(TriState)(-2)); | |
public static char GetChar(string str, int Index); | |
public static int InStr(int Start, string String1, string String2, CompareMethod Compare=(CompareMethod)(0)); | |
public static int InStr(string String1, string String2, CompareMethod Compare=(CompareMethod)(0)); | |
public static int InStrRev(string StringCheck, string StringMatch, int Start=-1, CompareMethod Compare=(CompareMethod)(0)); | |
public static string Join(object[] SourceArray, string Delimiter=" "); | |
public static string Join(string[] SourceArray, string Delimiter=" "); | |
public static char LCase(char Value); | |
public static string LCase(string Value); | |
public static string Left(string str, int Length); | |
public static int Len(bool Expression); | |
public static int Len(byte Expression); | |
public static int Len(char Expression); | |
public static int Len(DateTime Expression); | |
public static int Len(decimal Expression); | |
public static int Len(double Expression); | |
public static int Len(short Expression); | |
public static int Len(int Expression); | |
public static int Len(long Expression); | |
public static int Len(object Expression); | |
public static int Len(sbyte Expression); | |
public static int Len(float Expression); | |
public static int Len(string Expression); | |
public static int Len(ushort Expression); | |
public static int Len(uint Expression); | |
public static int Len(ulong Expression); | |
public static string LSet(string Source, int Length); | |
public static string LTrim(string str); | |
public static string Mid(string str, int Start); | |
public static string Mid(string str, int Start, int Length); | |
public static string Replace(string Expression, string Find, string Replacement, int Start=1, int Count=-1, CompareMethod Compare=(CompareMethod)(0)); | |
public static string Right(string str, int Length); | |
public static string RSet(string Source, int Length); | |
public static string RTrim(string str); | |
public static string Space(int Number); | |
public static string[] Split(string Expression, string Delimiter=" ", int Limit=-1, CompareMethod Compare=(CompareMethod)(0)); | |
public static int StrComp(string String1, string String2, CompareMethod Compare=(CompareMethod)(0)); | |
public static string StrConv(string str, VbStrConv Conversion, int LocaleID=0); | |
public static string StrDup(int Number, char Character); | |
public static object StrDup(int Number, object Character); | |
public static string StrDup(int Number, string Character); | |
public static string StrReverse(string Expression); | |
public static string Trim(string str); | |
public static char UCase(char Value); | |
public static string UCase(string Value); | |
} | |
public struct TabInfo { | |
public short Column; | |
} | |
public enum TriState { | |
False = 0, | |
True = -1, | |
UseDefault = -2, | |
} | |
public enum VariantType { | |
Array = 8192, | |
Boolean = 11, | |
Byte = 17, | |
Char = 18, | |
Currency = 6, | |
DataObject = 13, | |
Date = 7, | |
Decimal = 14, | |
Double = 5, | |
Empty = 0, | |
Error = 10, | |
Integer = 3, | |
Long = 20, | |
Null = 1, | |
Object = 9, | |
Short = 2, | |
Single = 4, | |
String = 8, | |
UserDefinedType = 36, | |
Variant = 12, | |
} | |
public sealed class VBFixedArrayAttribute : Attribute { | |
public VBFixedArrayAttribute(int UpperBound1); | |
public VBFixedArrayAttribute(int UpperBound1, int UpperBound2); | |
public int[] Bounds { get; } | |
public int Length { get; } | |
} | |
public sealed class VBFixedStringAttribute : Attribute { | |
public VBFixedStringAttribute(int Length); | |
public int Length { get; } | |
} | |
public sealed class VBMath { | |
public static void Randomize(); | |
public static void Randomize(double Number); | |
public static float Rnd(); | |
public static float Rnd(float Number); | |
} | |
public enum VbStrConv { | |
Hiragana = 32, | |
Katakana = 16, | |
LinguisticCasing = 1024, | |
Lowercase = 2, | |
Narrow = 8, | |
None = 0, | |
ProperCase = 3, | |
SimplifiedChinese = 256, | |
TraditionalChinese = 512, | |
Uppercase = 1, | |
Wide = 4, | |
} | |
} | |
namespace Microsoft.VisualBasic.ApplicationServices { | |
public class ApplicationBase { | |
public ApplicationBase(); | |
public CultureInfo Culture { get; } | |
public AssemblyInfo Info { get; } | |
public Log Log { get; } | |
public CultureInfo UICulture { get; } | |
public void ChangeCulture(string cultureName); | |
public void ChangeUICulture(string cultureName); | |
public string GetEnvironmentVariable(string name); | |
} | |
public class AssemblyInfo { | |
public AssemblyInfo(Assembly currentAssembly); | |
public string AssemblyName { get; } | |
public string CompanyName { get; } | |
public string Copyright { get; } | |
public string Description { get; } | |
public string DirectoryPath { get; } | |
public ReadOnlyCollection<Assembly> LoadedAssemblies { get; } | |
public string ProductName { get; } | |
public string StackTrace { get; } | |
public string Title { get; } | |
public string Trademark { get; } | |
public Version Version { get; } | |
public long WorkingSet { get; } | |
} | |
public enum AuthenticationMode { | |
ApplicationDefined = 1, | |
Windows = 0, | |
} | |
public enum BuiltInRole { | |
AccountOperator = 548, | |
Administrator = 544, | |
BackupOperator = 551, | |
Guest = 546, | |
PowerUser = 547, | |
PrintOperator = 550, | |
Replicator = 552, | |
SystemOperator = 549, | |
User = 545, | |
} | |
public class BuiltInRoleConverter : TypeConverter { | |
public BuiltInRoleConverter(); | |
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType); | |
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType); | |
} | |
public class CantStartSingleInstanceException : Exception { | |
public CantStartSingleInstanceException(); | |
protected CantStartSingleInstanceException(SerializationInfo info, StreamingContext context); | |
public CantStartSingleInstanceException(string message); | |
public CantStartSingleInstanceException(string message, Exception inner); | |
} | |
public class ConsoleApplicationBase : ApplicationBase { | |
public ConsoleApplicationBase(); | |
public ReadOnlyCollection<string> CommandLineArgs { get; } | |
public ApplicationDeployment Deployment { get; } | |
protected ReadOnlyCollection<string> InternalCommandLine { set; } | |
public bool IsNetworkDeployed { get; } | |
} | |
public class NoStartupFormException : Exception { | |
public NoStartupFormException(); | |
protected NoStartupFormException(SerializationInfo info, StreamingContext context); | |
public NoStartupFormException(string message); | |
public NoStartupFormException(string message, Exception inner); | |
} | |
public delegate void ShutdownEventHandler(object sender, EventArgs e); | |
public enum ShutdownMode { | |
AfterAllFormsClose = 1, | |
AfterMainFormCloses = 0, | |
} | |
public class StartupEventArgs : CancelEventArgs { | |
public StartupEventArgs(ReadOnlyCollection<string> args); | |
public ReadOnlyCollection<string> CommandLine { get; } | |
} | |
public delegate void StartupEventHandler(object sender, StartupEventArgs e); | |
public class StartupNextInstanceEventArgs : EventArgs { | |
public StartupNextInstanceEventArgs(ReadOnlyCollection<string> args, bool bringToForegroundFlag); | |
public bool BringToForeground { get; set; } | |
public ReadOnlyCollection<string> CommandLine { get; } | |
} | |
public delegate void StartupNextInstanceEventHandler(object sender, StartupNextInstanceEventArgs e); | |
public class UnhandledExceptionEventArgs : ThreadExceptionEventArgs { | |
public UnhandledExceptionEventArgs(bool exitApplication, Exception exception); | |
public bool ExitApplication { get; set; } | |
} | |
public delegate void UnhandledExceptionEventHandler(object sender, UnhandledExceptionEventArgs e); | |
public class User { | |
public User(); | |
public IPrincipal CurrentPrincipal { get; set; } | |
protected virtual IPrincipal InternalPrincipal { get; set; } | |
public bool IsAuthenticated { get; } | |
public string Name { get; } | |
public void InitializeWithWindowsUser(); | |
public bool IsInRole(BuiltInRole role); | |
public bool IsInRole(string role); | |
} | |
public class WebUser : User { | |
public WebUser(); | |
protected override IPrincipal InternalPrincipal { get; set; } | |
} | |
public class WindowsFormsApplicationBase : ConsoleApplicationBase { | |
public WindowsFormsApplicationBase(); | |
public WindowsFormsApplicationBase(AuthenticationMode authenticationMode); | |
public ApplicationContext ApplicationContext { get; } | |
protected bool EnableVisualStyles { get; set; } | |
protected bool IsSingleInstance { get; set; } | |
protected Form MainForm { get; set; } | |
public int MinimumSplashScreenDisplayTime { get; set; } | |
public FormCollection OpenForms { get; } | |
public bool SaveMySettingsOnExit { get; set; } | |
protected internal ShutdownMode ShutdownStyle { get; set; } | |
public Form SplashScreen { get; set; } | |
protected static bool UseCompatibleTextRendering { get; } | |
public event NetworkAvailableEventHandler NetworkAvailabilityChanged; | |
public event ShutdownEventHandler Shutdown; | |
public event StartupEventHandler Startup; | |
public event StartupNextInstanceEventHandler StartupNextInstance; | |
public event UnhandledExceptionEventHandler UnhandledException; | |
public void DoEvents(); | |
protected void HideSplashScreen(); | |
protected virtual void OnCreateMainForm(); | |
protected virtual void OnCreateSplashScreen(); | |
protected virtual bool OnInitialize(ReadOnlyCollection<string> commandLineArgs); | |
protected virtual void OnRun(); | |
protected virtual void OnShutdown(); | |
protected virtual bool OnStartup(StartupEventArgs eventArgs); | |
protected virtual void OnStartupNextInstance(StartupNextInstanceEventArgs eventArgs); | |
protected virtual bool OnUnhandledException(UnhandledExceptionEventArgs e); | |
public void Run(string[] commandLine); | |
protected void ShowSplashScreen(); | |
} | |
} | |
namespace Microsoft.VisualBasic.CompilerServices { | |
public sealed class BooleanType { | |
public static bool FromObject(object Value); | |
public static bool FromString(string Value); | |
} | |
public sealed class ByteType { | |
public static byte FromObject(object Value); | |
public static byte FromString(string Value); | |
} | |
public sealed class CharArrayType { | |
public static char[] FromObject(object Value); | |
public static char[] FromString(string Value); | |
} | |
public sealed class CharType { | |
public static char FromObject(object Value); | |
public static char FromString(string Value); | |
} | |
public sealed class Conversions { | |
public static string FromCharAndCount(char Value, int Count); | |
public static string FromCharArray(char[] Value); | |
public static string FromCharArraySubset(char[] Value, int StartIndex, int Length); | |
public static string ToString(decimal Value, NumberFormatInfo NumberFormat); | |
public static string ToString(double Value, NumberFormatInfo NumberFormat); | |
public static string ToString(float Value, NumberFormatInfo NumberFormat); | |
} | |
public sealed class DateType { | |
public static DateTime FromObject(object Value); | |
public static DateTime FromString(string Value); | |
public static DateTime FromString(string Value, CultureInfo culture); | |
} | |
public sealed class DecimalType { | |
public static decimal FromBoolean(bool Value); | |
public static decimal FromObject(object Value); | |
public static decimal FromObject(object Value, NumberFormatInfo NumberFormat); | |
public static decimal FromString(string Value); | |
public static decimal FromString(string Value, NumberFormatInfo NumberFormat); | |
public static decimal Parse(string Value, NumberFormatInfo NumberFormat); | |
} | |
public sealed class DoubleType { | |
public static double FromObject(object Value); | |
public static double FromObject(object Value, NumberFormatInfo NumberFormat); | |
public static double FromString(string Value); | |
public static double FromString(string Value, NumberFormatInfo NumberFormat); | |
public static double Parse(string Value); | |
public static double Parse(string Value, NumberFormatInfo NumberFormat); | |
} | |
public sealed class ExceptionUtils { | |
} | |
public sealed class FlowControl { | |
public static void CheckForSyncLockOnValueType(object obj); | |
public static IEnumerator ForEachInArr(Array ary); | |
public static IEnumerator ForEachInObj(object obj); | |
public static bool ForEachNextObj(ref object obj, IEnumerator enumerator); | |
public static bool ForLoopInitObj(object Counter, object Start, object Limit, object StepValue, ref object LoopForResult, ref object CounterResult); | |
public static bool ForNextCheckDec(decimal count, decimal limit, decimal StepValue); | |
public static bool ForNextCheckObj(object Counter, object LoopObj, ref object CounterResult); | |
public static bool ForNextCheckR4(float count, float limit, float StepValue); | |
public static bool ForNextCheckR8(double count, double limit, double StepValue); | |
} | |
public sealed class HostServices { | |
public HostServices(); | |
public static IVbHost VBHost { get; set; } | |
} | |
public sealed class IncompleteInitialization : Exception { | |
public IncompleteInitialization(string message); | |
public IncompleteInitialization(string message, Exception innerException); | |
} | |
public sealed class IntegerType { | |
public static int FromObject(object Value); | |
public static int FromString(string Value); | |
} | |
public sealed class InternalErrorException : Exception { | |
public InternalErrorException(); | |
public InternalErrorException(string message); | |
public InternalErrorException(string message, Exception innerException); | |
} | |
public interface IVbHost { | |
IWin32Window GetParentWindow(); | |
string GetWindowTitle(); | |
} | |
public sealed class LateBinding { | |
public static void LateCall(object o, Type objType, string name, object[] args, string[] paramnames, bool[] CopyBack); | |
public static object LateGet(object o, Type objType, string name, object[] args, string[] paramnames, bool[] CopyBack); | |
public static object LateIndexGet(object o, object[] args, string[] paramnames); | |
public static void LateIndexSet(object o, object[] args, string[] paramnames); | |
public static void LateIndexSetComplex(object o, object[] args, string[] paramnames, bool OptimisticSet, bool RValueBase); | |
public static void LateSet(object o, Type objType, string name, object[] args, string[] paramnames); | |
public static void LateSetComplex(object o, Type objType, string name, object[] args, string[] paramnames, bool OptimisticSet, bool RValueBase); | |
} | |
public sealed class LikeOperator { | |
public static object LikeObject(object Source, object Pattern, CompareMethod CompareOption); | |
public static bool LikeString(string Source, string Pattern, CompareMethod CompareOption); | |
} | |
public sealed class LongType { | |
public static long FromObject(object Value); | |
public static long FromString(string Value); | |
} | |
public sealed class NewLateBinding { | |
public static bool LateCanEvaluate(object instance, Type type, string memberName, object[] arguments, bool allowFunctionEvaluation, bool allowPropertyEvaluation); | |
} | |
public sealed class ObjectType { | |
public ObjectType(); | |
public static object AddObj(object o1, object o2); | |
public static object BitAndObj(object obj1, object obj2); | |
public static object BitOrObj(object obj1, object obj2); | |
public static object BitXorObj(object obj1, object obj2); | |
public static object DivObj(object o1, object o2); | |
public static object GetObjectValuePrimitive(object o); | |
public static object IDivObj(object o1, object o2); | |
public static bool LikeObj(object vLeft, object vRight, CompareMethod CompareOption); | |
public static object ModObj(object o1, object o2); | |
public static object MulObj(object o1, object o2); | |
public static object NegObj(object obj); | |
public static object NotObj(object obj); | |
public static int ObjTst(object o1, object o2, bool TextCompare); | |
public static object PlusObj(object obj); | |
public static object PowObj(object obj1, object obj2); | |
public static object ShiftLeftObj(object o1, int amount); | |
public static object ShiftRightObj(object o1, int amount); | |
public static object StrCatObj(object vLeft, object vRight); | |
public static object SubObj(object o1, object o2); | |
public static object XorObj(object obj1, object obj2); | |
} | |
public sealed class Operators { | |
public static int CompareObject(object Left, object Right, bool TextCompare); | |
public static object LikeObject(object Source, object Pattern, CompareMethod CompareOption); | |
public static bool LikeString(string Source, string Pattern, CompareMethod CompareOption); | |
} | |
public sealed class ProjectData { | |
public static Exception CreateProjectError(int hr); | |
public static void EndApp(); | |
} | |
public sealed class ShortType { | |
public static short FromObject(object Value); | |
public static short FromString(string Value); | |
} | |
public sealed class SingleType { | |
public static float FromObject(object Value); | |
public static float FromObject(object Value, NumberFormatInfo NumberFormat); | |
public static float FromString(string Value); | |
public static float FromString(string Value, NumberFormatInfo NumberFormat); | |
} | |
public sealed class StringType { | |
public static string FromBoolean(bool Value); | |
public static string FromByte(byte Value); | |
public static string FromChar(char Value); | |
public static string FromDate(DateTime Value); | |
public static string FromDecimal(decimal Value); | |
public static string FromDecimal(decimal Value, NumberFormatInfo NumberFormat); | |
public static string FromDouble(double Value); | |
public static string FromDouble(double Value, NumberFormatInfo NumberFormat); | |
public static string FromInteger(int Value); | |
public static string FromLong(long Value); | |
public static string FromObject(object Value); | |
public static string FromShort(short Value); | |
public static string FromSingle(float Value); | |
public static string FromSingle(float Value, NumberFormatInfo NumberFormat); | |
public static void MidStmtStr(ref string sDest, int StartPosition, int MaxInsertLength, string sInsert); | |
public static int StrCmp(string sLeft, string sRight, bool TextCompare); | |
public static bool StrLike(string Source, string Pattern, CompareMethod CompareOption); | |
public static bool StrLikeBinary(string Source, string Pattern); | |
public static bool StrLikeText(string Source, string Pattern); | |
} | |
public sealed class Utils { | |
public static string GetResourceString(string ResourceKey, params string[] Args); | |
public static string MethodToString(MethodBase Method); | |
public static object SetCultureInfo(CultureInfo Culture); | |
public static void ThrowException(int hr); | |
} | |
public sealed class Versioned { | |
public static object CallByName(object Instance, string MethodName, CallType UseCallType, params object[] Arguments); | |
public static bool IsNumeric(object Expression); | |
public static string SystemTypeName(string VbName); | |
public static string TypeName(object Expression); | |
public static string VbTypeName(string SystemName); | |
} | |
} | |
namespace Microsoft.VisualBasic.Devices { | |
public class Audio { | |
public Audio(); | |
public void Play(byte[] data, AudioPlayMode playMode); | |
public void Play(Stream stream, AudioPlayMode playMode); | |
public void Play(string location); | |
public void Play(string location, AudioPlayMode playMode); | |
public void PlaySystemSound(SystemSound systemSound); | |
public void Stop(); | |
} | |
public class Clock { | |
public Clock(); | |
public DateTime GmtTime { get; } | |
public DateTime LocalTime { get; } | |
public int TickCount { get; } | |
} | |
public class Computer : ServerComputer { | |
public Computer(); | |
public Audio Audio { get; } | |
public ClipboardProxy Clipboard { get; } | |
public Keyboard Keyboard { get; } | |
public Mouse Mouse { get; } | |
public Ports Ports { get; } | |
public Screen Screen { get; } | |
} | |
public class ComputerInfo { | |
public ComputerInfo(); | |
public ulong AvailablePhysicalMemory { get; } | |
public ulong AvailableVirtualMemory { get; } | |
public CultureInfo InstalledUICulture { get; } | |
public string OSFullName { get; } | |
public string OSPlatform { get; } | |
public string OSVersion { get; } | |
public ulong TotalPhysicalMemory { get; } | |
public ulong TotalVirtualMemory { get; } | |
} | |
public class Keyboard { | |
public Keyboard(); | |
public bool AltKeyDown { get; } | |
public bool CapsLock { get; } | |
public bool CtrlKeyDown { get; } | |
public bool NumLock { get; } | |
public bool ScrollLock { get; } | |
public bool ShiftKeyDown { get; } | |
public void SendKeys(string keys); | |
public void SendKeys(string keys, bool wait); | |
} | |
public class Mouse { | |
public Mouse(); | |
public bool ButtonsSwapped { get; } | |
public bool WheelExists { get; } | |
public int WheelScrollLines { get; } | |
} | |
public class Network { | |
public Network(); | |
public bool IsAvailable { get; } | |
public event NetworkAvailableEventHandler NetworkAvailabilityChanged; | |
public void DownloadFile(string address, string destinationFileName); | |
public void DownloadFile(string address, string destinationFileName, string userName, string password); | |
public void DownloadFile(string address, string destinationFileName, string userName, string password, bool showUI, int connectionTimeout, bool overwrite); | |
public void DownloadFile(string address, string destinationFileName, string userName, string password, bool showUI, int connectionTimeout, bool overwrite, UICancelOption onUserCancel); | |
public void DownloadFile(Uri address, string destinationFileName); | |
public void DownloadFile(Uri address, string destinationFileName, ICredentials networkCredentials, bool showUI, int connectionTimeout, bool overwrite); | |
public void DownloadFile(Uri address, string destinationFileName, ICredentials networkCredentials, bool showUI, int connectionTimeout, bool overwrite, UICancelOption onUserCancel); | |
public void DownloadFile(Uri address, string destinationFileName, string userName, string password); | |
public void DownloadFile(Uri address, string destinationFileName, string userName, string password, bool showUI, int connectionTimeout, bool overwrite); | |
public void DownloadFile(Uri address, string destinationFileName, string userName, string password, bool showUI, int connectionTimeout, bool overwrite, UICancelOption onUserCancel); | |
public bool Ping(string hostNameOrAddress); | |
public bool Ping(string hostNameOrAddress, int timeout); | |
public bool Ping(Uri address); | |
public bool Ping(Uri address, int timeout); | |
public void UploadFile(string sourceFileName, string address); | |
public void UploadFile(string sourceFileName, string address, string userName, string password); | |
public void UploadFile(string sourceFileName, string address, string userName, string password, bool showUI, int connectionTimeout); | |
public void UploadFile(string sourceFileName, string address, string userName, string password, bool showUI, int connectionTimeout, UICancelOption onUserCancel); | |
public void UploadFile(string sourceFileName, Uri address); | |
public void UploadFile(string sourceFileName, Uri address, ICredentials networkCredentials, bool showUI, int connectionTimeout); | |
public void UploadFile(string sourceFileName, Uri address, ICredentials networkCredentials, bool showUI, int connectionTimeout, UICancelOption onUserCancel); | |
public void UploadFile(string sourceFileName, Uri address, string userName, string password); | |
public void UploadFile(string sourceFileName, Uri address, string userName, string password, bool showUI, int connectionTimeout); | |
public void UploadFile(string sourceFileName, Uri address, string userName, string password, bool showUI, int connectionTimeout, UICancelOption onUserCancel); | |
} | |
public class NetworkAvailableEventArgs : EventArgs { | |
public NetworkAvailableEventArgs(bool networkAvailable); | |
public bool IsNetworkAvailable { get; } | |
} | |
public delegate void NetworkAvailableEventHandler(object sender, NetworkAvailableEventArgs e); | |
public class Ports { | |
public Ports(); | |
public ReadOnlyCollection<string> SerialPortNames { get; } | |
public SerialPort OpenSerialPort(string portName); | |
public SerialPort OpenSerialPort(string portName, int baudRate); | |
public SerialPort OpenSerialPort(string portName, int baudRate, Parity parity); | |
public SerialPort OpenSerialPort(string portName, int baudRate, Parity parity, int dataBits); | |
public SerialPort OpenSerialPort(string portName, int baudRate, Parity parity, int dataBits, StopBits stopBits); | |
} | |
public class ServerComputer { | |
public ServerComputer(); | |
public Clock Clock { get; } | |
public FileSystemProxy FileSystem { get; } | |
public ComputerInfo Info { get; } | |
public string Name { get; } | |
public Network Network { get; } | |
public RegistryProxy Registry { get; } | |
} | |
} | |
namespace Microsoft.VisualBasic.FileIO { | |
public enum DeleteDirectoryOption { | |
DeleteAllContents = 5, | |
ThrowIfDirectoryNonEmpty = 4, | |
} | |
public enum FieldType { | |
Delimited = 0, | |
FixedWidth = 1, | |
} | |
public class FileSystem { | |
public FileSystem(); | |
public static string CurrentDirectory { get; set; } | |
public static ReadOnlyCollection<DriveInfo> Drives { get; } | |
public static string CombinePath(string baseDirectory, string relativePath); | |
public static void CopyDirectory(string sourceDirectoryName, string destinationDirectoryName); | |
public static void CopyDirectory(string sourceDirectoryName, string destinationDirectoryName, UIOption showUI); | |
public static void CopyDirectory(string sourceDirectoryName, string destinationDirectoryName, UIOption showUI, UICancelOption onUserCancel); | |
public static void CopyDirectory(string sourceDirectoryName, string destinationDirectoryName, bool overwrite); | |
public static void CopyFile(string sourceFileName, string destinationFileName); | |
public static void CopyFile(string sourceFileName, string destinationFileName, UIOption showUI); | |
public static void CopyFile(string sourceFileName, string destinationFileName, UIOption showUI, UICancelOption onUserCancel); | |
public static void CopyFile(string sourceFileName, string destinationFileName, bool overwrite); | |
public static void CreateDirectory(string directory); | |
public static void DeleteDirectory(string directory, DeleteDirectoryOption onDirectoryNotEmpty); | |
public static void DeleteDirectory(string directory, UIOption showUI, RecycleOption recycle); | |
public static void DeleteDirectory(string directory, UIOption showUI, RecycleOption recycle, UICancelOption onUserCancel); | |
public static void DeleteFile(string file); | |
public static void DeleteFile(string file, UIOption showUI, RecycleOption recycle); | |
public static void DeleteFile(string file, UIOption showUI, RecycleOption recycle, UICancelOption onUserCancel); | |
public static bool DirectoryExists(string directory); | |
public static bool FileExists(string file); | |
public static ReadOnlyCollection<string> FindInFiles(string directory, string containsText, bool ignoreCase, SearchOption searchType); | |
public static ReadOnlyCollection<string> FindInFiles(string directory, string containsText, bool ignoreCase, SearchOption searchType, params string[] fileWildcards); | |
public static ReadOnlyCollection<string> GetDirectories(string directory); | |
public static ReadOnlyCollection<string> GetDirectories(string directory, SearchOption searchType, params string[] wildcards); | |
public static DirectoryInfo GetDirectoryInfo(string directory); | |
public static DriveInfo GetDriveInfo(string drive); | |
public static FileInfo GetFileInfo(string file); | |
public static ReadOnlyCollection<string> GetFiles(string directory); | |
public static ReadOnlyCollection<string> GetFiles(string directory, SearchOption searchType, params string[] wildcards); | |
public static string GetName(string path); | |
public static string GetParentPath(string path); | |
public static string GetTempFileName(); | |
public static void MoveDirectory(string sourceDirectoryName, string destinationDirectoryName); | |
public static void MoveDirectory(string sourceDirectoryName, string destinationDirectoryName, UIOption showUI); | |
public static void MoveDirectory(string sourceDirectoryName, string destinationDirectoryName, UIOption showUI, UICancelOption onUserCancel); | |
public static void MoveDirectory(string sourceDirectoryName, string destinationDirectoryName, bool overwrite); | |
public static void MoveFile(string sourceFileName, string destinationFileName); | |
public static void MoveFile(string sourceFileName, string destinationFileName, UIOption showUI); | |
public static void MoveFile(string sourceFileName, string destinationFileName, UIOption showUI, UICancelOption onUserCancel); | |
public static void MoveFile(string sourceFileName, string destinationFileName, bool overwrite); | |
public static TextFieldParser OpenTextFieldParser(string file); | |
public static TextFieldParser OpenTextFieldParser(string file, params int[] fieldWidths); | |
public static TextFieldParser OpenTextFieldParser(string file, params string[] delimiters); | |
public static StreamReader OpenTextFileReader(string file); | |
public static StreamReader OpenTextFileReader(string file, Encoding encoding); | |
public static StreamWriter OpenTextFileWriter(string file, bool append); | |
public static StreamWriter OpenTextFileWriter(string file, bool append, Encoding encoding); | |
public static byte[] ReadAllBytes(string file); | |
public static string ReadAllText(string file); | |
public static string ReadAllText(string file, Encoding encoding); | |
public static void RenameDirectory(string directory, string newName); | |
public static void RenameFile(string file, string newName); | |
public static void WriteAllBytes(string file, byte[] data, bool append); | |
public static void WriteAllText(string file, string text, bool append); | |
public static void WriteAllText(string file, string text, bool append, Encoding encoding); | |
} | |
public class MalformedLineException : Exception { | |
public MalformedLineException(); | |
protected MalformedLineException(SerializationInfo info, StreamingContext context); | |
public MalformedLineException(string message); | |
public MalformedLineException(string message, Exception innerException); | |
public MalformedLineException(string message, long lineNumber); | |
public MalformedLineException(string message, long lineNumber, Exception innerException); | |
public long LineNumber { get; set; } | |
public override void GetObjectData(SerializationInfo info, StreamingContext context); | |
public override string ToString(); | |
} | |
public enum RecycleOption { | |
DeletePermanently = 2, | |
SendToRecycleBin = 3, | |
} | |
public enum SearchOption { | |
SearchAllSubDirectories = 3, | |
SearchTopLevelOnly = 2, | |
} | |
public class SpecialDirectories { | |
public SpecialDirectories(); | |
public static string AllUsersApplicationData { get; } | |
public static string CurrentUserApplicationData { get; } | |
public static string Desktop { get; } | |
public static string MyDocuments { get; } | |
public static string MyMusic { get; } | |
public static string MyPictures { get; } | |
public static string ProgramFiles { get; } | |
public static string Programs { get; } | |
public static string Temp { get; } | |
} | |
public class TextFieldParser : IDisposable { | |
public TextFieldParser(Stream stream); | |
public TextFieldParser(Stream stream, Encoding defaultEncoding); | |
public TextFieldParser(Stream stream, Encoding defaultEncoding, bool detectEncoding); | |
public TextFieldParser(Stream stream, Encoding defaultEncoding, bool detectEncoding, bool leaveOpen); | |
public TextFieldParser(TextReader reader); | |
public TextFieldParser(string path); | |
public TextFieldParser(string path, Encoding defaultEncoding); | |
public TextFieldParser(string path, Encoding defaultEncoding, bool detectEncoding); | |
public string[] CommentTokens { get; set; } | |
public string[] Delimiters { get; set; } | |
public bool EndOfData { get; } | |
public string ErrorLine { get; } | |
public long ErrorLineNumber { get; } | |
public int[] FieldWidths { get; set; } | |
public bool HasFieldsEnclosedInQuotes { get; set; } | |
public long LineNumber { get; } | |
public FieldType TextFieldType { get; set; } | |
public bool TrimWhiteSpace { get; set; } | |
public void Close(); | |
void Dispose(); | |
protected virtual void Dispose(bool disposing); | |
~TextFieldParser(); | |
public string PeekChars(int numberOfChars); | |
public string[] ReadFields(); | |
public string ReadLine(); | |
public string ReadToEnd(); | |
public void SetDelimiters(params string[] delimiters); | |
public void SetFieldWidths(params int[] fieldWidths); | |
} | |
public enum UICancelOption { | |
DoNothing = 2, | |
ThrowException = 3, | |
} | |
public enum UIOption { | |
AllDialogs = 3, | |
OnlyErrorDialogs = 2, | |
} | |
} | |
namespace Microsoft.VisualBasic.Logging { | |
public class AspLog : Log { | |
public AspLog(); | |
public AspLog(string name); | |
protected internal override void InitializeWithDefaultsSinceNoConfigExists(); | |
} | |
public enum DiskSpaceExhaustedOption { | |
DiscardMessages = 1, | |
ThrowException = 0, | |
} | |
public class FileLogTraceListener : TraceListener { | |
public FileLogTraceListener(); | |
public FileLogTraceListener(string name); | |
public bool Append { get; set; } | |
public bool AutoFlush { get; set; } | |
public string BaseFileName { get; set; } | |
public string CustomLocation { get; set; } | |
public string Delimiter { get; set; } | |
public DiskSpaceExhaustedOption DiskSpaceExhaustedBehavior { get; set; } | |
public Encoding Encoding { get; set; } | |
public string FullLogFileName { get; } | |
public bool IncludeHostName { get; set; } | |
public LogFileLocation Location { get; set; } | |
public LogFileCreationScheduleOption LogFileCreationSchedule { get; set; } | |
public long MaxFileSize { get; set; } | |
public long ReserveDiskSpace { get; set; } | |
public override void Close(); | |
protected override void Dispose(bool disposing); | |
public override void Flush(); | |
protected override string[] GetSupportedAttributes(); | |
public override void TraceData(TraceEventCache eventCache, string source, TraceEventType eventType, int id, object data); | |
public override void TraceData(TraceEventCache eventCache, string source, TraceEventType eventType, int id, params object[] data); | |
public override void TraceEvent(TraceEventCache eventCache, string source, TraceEventType eventType, int id, string message); | |
public override void TraceEvent(TraceEventCache eventCache, string source, TraceEventType eventType, int id, string format, params object[] args); | |
public override void Write(string message); | |
public override void WriteLine(string message); | |
} | |
public class Log { | |
public Log(); | |
public Log(string name); | |
public FileLogTraceListener DefaultFileLogWriter { get; } | |
public TraceSource TraceSource { get; } | |
protected internal virtual void InitializeWithDefaultsSinceNoConfigExists(); | |
public void WriteEntry(string message); | |
public void WriteEntry(string message, TraceEventType severity); | |
public void WriteEntry(string message, TraceEventType severity, int id); | |
public void WriteException(Exception ex); | |
public void WriteException(Exception ex, TraceEventType severity, string additionalInfo); | |
public void WriteException(Exception ex, TraceEventType severity, string additionalInfo, int id); | |
} | |
public enum LogFileCreationScheduleOption { | |
Daily = 1, | |
None = 0, | |
Weekly = 2, | |
} | |
public enum LogFileLocation { | |
CommonApplicationDirectory = 2, | |
Custom = 4, | |
ExecutableDirectory = 3, | |
LocalUserApplicationDirectory = 1, | |
TempDirectory = 0, | |
} | |
} | |
namespace Microsoft.VisualBasic.MyServices { | |
public class ClipboardProxy { | |
public void Clear(); | |
public bool ContainsAudio(); | |
public bool ContainsData(string format); | |
public bool ContainsFileDropList(); | |
public bool ContainsImage(); | |
public bool ContainsText(); | |
public bool ContainsText(TextDataFormat format); | |
public Stream GetAudioStream(); | |
public object GetData(string format); | |
public IDataObject GetDataObject(); | |
public StringCollection GetFileDropList(); | |
public Image GetImage(); | |
public string GetText(); | |
public string GetText(TextDataFormat format); | |
public void SetAudio(byte[] audioBytes); | |
public void SetAudio(Stream audioStream); | |
public void SetData(string format, object data); | |
public void SetDataObject(DataObject data); | |
public void SetFileDropList(StringCollection filePaths); | |
public void SetImage(Image image); | |
public void SetText(string text); | |
public void SetText(string text, TextDataFormat format); | |
} | |
public class FileSystemProxy { | |
public string CurrentDirectory { get; set; } | |
public ReadOnlyCollection<DriveInfo> Drives { get; } | |
public SpecialDirectoriesProxy SpecialDirectories { get; } | |
public string CombinePath(string baseDirectory, string relativePath); | |
public void CopyDirectory(string sourceDirectoryName, string destinationDirectoryName); | |
public void CopyDirectory(string sourceDirectoryName, string destinationDirectoryName, UIOption showUI); | |
public void CopyDirectory(string sourceDirectoryName, string destinationDirectoryName, UIOption showUI, UICancelOption onUserCancel); | |
public void CopyDirectory(string sourceDirectoryName, string destinationDirectoryName, bool overwrite); | |
public void CopyFile(string sourceFileName, string destinationFileName); | |
public void CopyFile(string sourceFileName, string destinationFileName, UIOption showUI); | |
public void CopyFile(string sourceFileName, string destinationFileName, UIOption showUI, UICancelOption onUserCancel); | |
public void CopyFile(string sourceFileName, string destinationFileName, bool overwrite); | |
public void CreateDirectory(string directory); | |
public void DeleteDirectory(string directory, DeleteDirectoryOption onDirectoryNotEmpty); | |
public void DeleteDirectory(string directory, UIOption showUI, RecycleOption recycle); | |
public void DeleteDirectory(string directory, UIOption showUI, RecycleOption recycle, UICancelOption onUserCancel); | |
public void DeleteFile(string file); | |
public void DeleteFile(string file, UIOption showUI, RecycleOption recycle); | |
public void DeleteFile(string file, UIOption showUI, RecycleOption recycle, UICancelOption onUserCancel); | |
public bool DirectoryExists(string directory); | |
public bool FileExists(string file); | |
public ReadOnlyCollection<string> FindInFiles(string directory, string containsText, bool ignoreCase, SearchOption searchType); | |
public ReadOnlyCollection<string> FindInFiles(string directory, string containsText, bool ignoreCase, SearchOption searchType, params string[] fileWildcards); | |
public ReadOnlyCollection<string> GetDirectories(string directory); | |
public ReadOnlyCollection<string> GetDirectories(string directory, SearchOption searchType, params string[] wildcards); | |
public DirectoryInfo GetDirectoryInfo(string directory); | |
public DriveInfo GetDriveInfo(string drive); | |
public FileInfo GetFileInfo(string file); | |
public ReadOnlyCollection<string> GetFiles(string directory); | |
public ReadOnlyCollection<string> GetFiles(string directory, SearchOption searchType, params string[] wildcards); | |
public string GetName(string path); | |
public string GetParentPath(string path); | |
public string GetTempFileName(); | |
public void MoveDirectory(string sourceDirectoryName, string destinationDirectoryName); | |
public void MoveDirectory(string sourceDirectoryName, string destinationDirectoryName, UIOption showUI); | |
public void MoveDirectory(string sourceDirectoryName, string destinationDirectoryName, UIOption showUI, UICancelOption onUserCancel); | |
public void MoveDirectory(string sourceDirectoryName, string destinationDirectoryName, bool overwrite); | |
public void MoveFile(string sourceFileName, string destinationFileName); | |
public void MoveFile(string sourceFileName, string destinationFileName, UIOption showUI); | |
public void MoveFile(string sourceFileName, string destinationFileName, UIOption showUI, UICancelOption onUserCancel); | |
public void MoveFile(string sourceFileName, string destinationFileName, bool overwrite); | |
public TextFieldParser OpenTextFieldParser(string file); | |
public TextFieldParser OpenTextFieldParser(string file, params int[] fieldWidths); | |
public TextFieldParser OpenTextFieldParser(string file, params string[] delimiters); | |
public StreamReader OpenTextFileReader(string file); | |
public StreamReader OpenTextFileReader(string file, Encoding encoding); | |
public StreamWriter OpenTextFileWriter(string file, bool append); | |
public StreamWriter OpenTextFileWriter(string file, bool append, Encoding encoding); | |
public byte[] ReadAllBytes(string file); | |
public string ReadAllText(string file); | |
public string ReadAllText(string file, Encoding encoding); | |
public void RenameDirectory(string directory, string newName); | |
public void RenameFile(string file, string newName); | |
public void WriteAllBytes(string file, byte[] data, bool append); | |
public void WriteAllText(string file, string text, bool append); | |
public void WriteAllText(string file, string text, bool append, Encoding encoding); | |
} | |
public class RegistryProxy { | |
public RegistryKey ClassesRoot { get; } | |
public RegistryKey CurrentConfig { get; } | |
public RegistryKey CurrentUser { get; } | |
public RegistryKey DynData { get; } | |
public RegistryKey LocalMachine { get; } | |
public RegistryKey PerformanceData { get; } | |
public RegistryKey Users { get; } | |
public object GetValue(string keyName, string valueName, object defaultValue); | |
public void SetValue(string keyName, string valueName, object value); | |
public void SetValue(string keyName, string valueName, object value, RegistryValueKind valueKind); | |
} | |
public class SpecialDirectoriesProxy { | |
public string AllUsersApplicationData { get; } | |
public string CurrentUserApplicationData { get; } | |
public string Desktop { get; } | |
public string MyDocuments { get; } | |
public string MyMusic { get; } | |
public string MyPictures { get; } | |
public string ProgramFiles { get; } | |
public string Programs { get; } | |
public string Temp { get; } | |
} | |
} | |
namespace Microsoft.VisualBasic.MyServices.Internal { | |
public class ContextValue<T> { | |
public ContextValue(); | |
public T Value { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment