using System; namespace System.Runtime.InteropServices { /// Indicates that the attributed method is exposed by an unmanaged dynamic-link library (DLL) as a static entry point. // Token: 0x02000040 RID: 64 [AttributeUsage(AttributeTargets.Method, Inherited = false)] [ComVisible(true)] public sealed class DllImportAttribute : Attribute { /// Initializes a new instance of the class with the name of the DLL containing the method to import. /// The name of the DLL that contains the unmanaged method. This can include an assembly display name, if the DLL is included in an assembly. // Token: 0x06000655 RID: 1621 RVA: 0x00014A78 File Offset: 0x00012C78 public DllImportAttribute(string dllName) { this.Dll = dllName; } /// Gets the name of the DLL file that contains the entry point. /// The name of the DLL file that contains the entry point. // Token: 0x170000AE RID: 174 // (get) Token: 0x06000656 RID: 1622 RVA: 0x00014A88 File Offset: 0x00012C88 public string Value { get { return this.Dll; } } /// Indicates the calling convention of an entry point. // Token: 0x04000085 RID: 133 public CallingConvention CallingConvention; /// Indicates how to marshal string parameters to the method and controls name mangling. // Token: 0x04000086 RID: 134 public CharSet CharSet; // Token: 0x04000087 RID: 135 private string Dll; /// Indicates the name or ordinal of the DLL entry point to be called. // Token: 0x04000088 RID: 136 public string EntryPoint; /// Controls whether the field causes the common language runtime to search an unmanaged DLL for entry-point names other than the one specified. // Token: 0x04000089 RID: 137 public bool ExactSpelling; /// Indicates whether unmanaged methods that have HRESULT or retval return values are directly translated or whether HRESULT or retval return values are automatically converted to exceptions. // Token: 0x0400008A RID: 138 public bool PreserveSig; /// Indicates whether the callee calls the SetLastError Win32 API function before returning from the attributed method. // Token: 0x0400008B RID: 139 public bool SetLastError; /// Enables or disables best-fit mapping behavior when converting Unicode characters to ANSI characters. // Token: 0x0400008C RID: 140 public bool BestFitMapping; /// Enables or disables the throwing of an exception on an unmappable Unicode character that is converted to an ANSI "?" character. // Token: 0x0400008D RID: 141 public bool ThrowOnUnmappableChar; } }