This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
DllImportAttribute Members
Public:
Constructor
Properties
Methods
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetType (inherited from Object) |
Gets the Type of the Object. |
ToString (inherited from Object) |
Returns a String that represents the current Object. |
Fields
CallingConvention |
Set to indicate the calling convention used in passing method arguments. See calling conventions in MSDN for details on each. The default is the CallingConvention value StdCall. |
CharSet |
Indicates how string arguments to the method should be marshaled. This field is set to one of the CharSet values. If the CharSet field is set to Unicode, all string arguments are converted to Unicode characters before being passed to the unmanaged implementation. If the field is set to Ansi, the strings are converted to ANSI strings first. If the CharSet is set to Auto, the conversion is platform dependent (Unicode on WinNT and ANSI on Win 9x). Auto is only supported through PInvoke. |
EntryPoint |
Indicates the name or ordinal of the dll entry point to be called. |
ExactSpelling |
Set to true to indicate that the name of the entry point in the unmanaged dll should not be modified to correspond to the CharSet value specified in the CharSet field. If the field is not set, the letter A is appended to the method name when Ansi is used and the letter W is appended to the method name when Unicode is used. The default is false. |
SetLastError |
Set to true to indicate that the caller may call GetLastError to determine if an error occurred while executing the method. The default is false. |
TransformSig |
Set to true to indicate that the managed method signature should be transformed into a unmanaged signature that returns an HResult and has an additional out retval argument for the return value. See the COM Interop spec for details. The default is false. |
Protected:
Methods
Finalize (inherited from Object) |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere. |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
See Also
DllImportAttribute Class | System.Runtime.InteropServices Namespace