6- Implementando interoperabilidad, reflexión, y correos electrónicos en una aplicación de la plataforma .NET.

12. April 2008 10:43 by Oscar.SS in Certificaciones, Desarrollo .NET  //  Tags: ,   //   Comments (0)

A- Expose COM components to the .NET Framework and the .NET Framework components to COM. (Refer System.Runtime.InteropServices namespace)

Import a type library as an assembly.

Add references to type libraries.

Type Library Importer (Tlbimp.exe)

Generate interop assemblies from type libraries.

Imported Library Conversion

Imported Module Conversion

Imported Type Conversion

Imported Member Conversion

Imported Parameter Conversion

TypeLibConverter class

Create COM types in managed code.

Compile an interop project.

Deploy an interop application.

Qualify the .NET Framework types for interoperation.

Apply Interop attributes, such as the ComVisibleAttribute class.

Package an assembly for COM.

Deploy an application for COM access.

B- Call unmanaged DLL functions in a .NET Framework application, and control the marshaling of data in a .NET Framework application. (Refer System.Runtime.InteropServices namespace)

Platform Invoke

Create a class to hold DLL functions.

Create prototypes in managed code.

DllImportAttribute class

Call a DLL function.

Call a DLL function in special cases, such as passing structures and implementing callback functions.

Create a new Exception class and map it to an HRESULT.

Default marshaling behavior

Marshal data with Platform Invoke

Marshal data with COM Interop

MarshalAsAttribute class and Marshal class

C- Implement reflection functionality in a .NET Framework application (refer System.Reflection namespace), and create metadata, Microsoft intermediate language (MSIL), and a PE file by using the System.Reflection.Emit namespace.

Assembly class

Assembly attributes

AssemblyAlgorithmIdAttribute class

AssemblyCompanyAttribute class

AssemblyConfigurationAttribute class

AssemblyCopyrightAttribute class

AssemblyCultureAttribute class

AssemblyDefaultAliasAttribute class

AssemblyDelaySignAttribute class

AssemblyDescriptionAttribute class

AssemblyFileVersionAttribute class

AssemblyFlagsAttribute class

AssemblyInformationalVersionAttribute class

AssemblyKeyFileAttribute class

AssemblyTitleAttribute class

AssemblyTrademarkAttribute class

AssemblyVersionAttribute class

Info classes

ConstructorInfo class

MethodInfo class

MemberInfo class

PropertyInfo class

FieldInfo class

EventInfo class

LocalVariableInfo class

Binder class and BindingFlags

MethodBase class and MethodBody class

Builder classes

AssemblyBuilder class

ConstructorBuilder class

EnumBuilder class

EventBuilder class

FieldBuilder class

LocalBuilder class

MethodBuilder class

ModuleBuilder class

ParameterBuilder class

PropertyBuilder class

TypeBuilder class



D- Send electronic mail to a Simple Mail Transfer Protocol (SMTP) server for delivery from a .NET Framework application. (Refer System.Net.Mail namespace)

MailMessage class

MailAddress class and MailAddressCollection class

SmtpClient class, SmtpPermission class, and SmtpPermissionAttribute class

Attachment class, AttachmentBase class, and AttachmentCollection class

SmtpException class and SmtpFailedReceipientException class

SendCompletedEventHandler delegate

LinkedResource class and LinkedResourceCollection class

AlternateView class and AlternateViewCollection class

Recent Comments

Comment RSS

Month List