Section A.19. Programming


A.19. Programming

A.19.1. Object Programming

Element

Description

AddHandler Statement

Dynamically binds an event handler to an event.

AddressOf Operator

Creates a procedure delegate instance that references a particular procedure.

AttributeUsage Attribute

Defines which elements support a particular custom attribute.

Class...End Class Statement

Defines a class and its members.

COMClass Attribute

Allows a .NET component to be exposed as a COM object.

CreateObject Function

Creates a new instance of a COM (ActiveX) object.

Custom Event Statement

New in 2005. Declares a custom event with specialized declaration handlers.

DefaultMember Attribute

Indicates which member of a type is considered the "default" member.

Delegate Statement

Declares a delegate.

Event Statement

Declares an event.

Get Statement

Defines a Property Get procedure that returns a property value to the caller.

GetObject Function

Returns a reference to a COM (ActiveX) object.

Handles Keyword

Indicates that the procedure serves as a handler for an event.

Implements Keyword

Indicates that a class member implements a property, function, procedure, or event of an abstract base class.

Implements Statement

Specifies one or more interfaces that are implemented by a class.

Imports Statement

Imports a namespace from a project or an assembly, making its types and their members accessible to the current project.

Inherits Statement

Indicates that a class is derived from a base class.

Interface...End Interface Statement

Defines an interface and its members.

Is Operator

Compares two object references for equality.

IsNot Operator

New in 2005. Compares two object references for inequality.

MarshalAs Attribute

Defines the conversion method between a COM data element and its .NET counterpart.

Me Keyword

Represents the current class instance.

Module...End Module Statement

Defines a code module and its members.

MyBase Keyword

Represents the base class from which an inherited class is derived.

MyClass Keyword

Represents the current class instance.

Namespace Statement

Declares the name of a namespace.

Operator Statement

New in 2005. Defines an overloaded operator.

Partial Keyword

New in 2005. Allows a type to be divided among multiple source code files.

Property Statement

Defines a property.

RaiseEvent Statement

Raises a custom event.

RemoveHandler Statement

Disassociates an event from an event handler defined using the AddHandler statement.

Set Statement

Defines a Property Set procedure that assigns a property value.

Shadows Keyword

Indicates that a derived class hides an identically named member in a base class.

Shared Keyword

Defines a shared member of a type that does not depend on an instance.

WithEvents Keyword

Receives notification of events raised by an object.


A.19.2. Miscellaneous Programming

Element

Description

AddressOf Operator

Creates a procedure delegate instance that references a particular procedure

Application.DoEvents Method

Allows the operating system to process events and messages waiting in the message queue

CLSCompliant Attribute

Indicates that an element is compliant with the minimal Common Language Specification

Declare Statement

Defines a prototype for a call to an external DLL library procedure

Environ Function

Retrieves the value of an environment variable

Guid Attribute

Assigns a GUID to a program element

Len Function

Counts the number of characters in a string

MTAThread Attribute

Indicates that the multithreaded apartment model is to be used for a class or application

Obsolete Attribute

Indicates that a program element is obsolete or deprecated

Out Attribute

Indicates that a parameter is an "out" parameter for data returned from a procedure

ParamArray Attribute

Indicates that a parameter is a "parameter array" element

STAThread Attribute

Indicates that the single-threaded apartment model is to be used for a class or application

SyncLock Statement

Prevents multiple threads of execution in the same process from accessing shared data or resources at the same time

ThreadStatic Attribute

Indicates that each thread maintains its own image of a static value





Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net