Export (0) Print
Expand All

COMPropertyInfo Class

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Enables JScript to communicate with an external COM property. This class is used by an external COM implementation to expose its objects to JScript because JScript needs a managed MemberInfo in order to bind to an external object.

Namespace:  Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

[GuidAttribute("6A02951C-B129-4d26-AB92-B9CA19BDCA26")]
[ComVisibleAttribute(true)]
public sealed class COMPropertyInfo : PropertyInfo, 
	MemberInfoInitializer

The COMPropertyInfo type exposes the following members.

  NameDescription
Public methodCOMPropertyInfoInitializes a new instance of the COMPropertyInfo class.
Top

  NameDescription
Public propertyAttributesGets the attributes that are associated with this property. (Overrides PropertyInfo.Attributes.)
Public propertyCanReadGets a value that indicates whether the property can be read. (Overrides PropertyInfo.CanRead.)
Public propertyCanWriteGets a value that indicates whether the property can be written to. (Overrides PropertyInfo.CanWrite.)
Public propertyDeclaringTypeGets the type that declares this property. (Overrides MemberInfo.DeclaringType.)
Public propertyIsSpecialNameGets a value indicating whether the property is the special name. (Inherited from PropertyInfo.)
Public propertyMemberTypeGets the type of member that this property is. Identifies the type of class derived from MemberInfo that this class derives from. (Overrides PropertyInfo.MemberType.)
Public propertyMetadataTokenGets a value that identifies a metadata element. (Inherited from MemberInfo.)
Public propertyModuleGets the module in which the type that declares the member represented by the current MemberInfo is defined. (Inherited from MemberInfo.)
Public propertyNameGets the name of the external COM property that this object represents. (Overrides MemberInfo.Name.)
Public propertyPropertyTypeGets the type of this property. (Overrides PropertyInfo.PropertyType.)
Public propertyReflectedTypeGets the class object that was used to obtain this instance through reflection. (Overrides MemberInfo.ReflectedType.)
Top

  NameDescription
Public methodEqualsReturns a value that indicates whether this instance is equal to a specified object. (Inherited from PropertyInfo.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetAccessors()Returns an array whose elements reflect the public get, set, and other accessors of the property reflected by the current instance. (Inherited from PropertyInfo.)
Public methodGetAccessors(Boolean)Gets an array whose elements contain the get and set accessors of the external COM property that this object represents. (Overrides PropertyInfo.GetAccessors(Boolean).)
Public methodGetCOMMemberInfoGets a managed object that enables JScript to communicate with this external COM property.
Public methodGetConstantValueReturns a literal value associated with the property by a compiler. (Inherited from PropertyInfo.)
Public methodGetCustomAttributes(Boolean)Returns an array that contains the custom attributes that are attached to this property. (Overrides MemberInfo.GetCustomAttributes(Boolean).)
Public methodGetCustomAttributes(Type, Boolean)Returns an array that contains the custom attributes that are attached to this property, searching only for attributes of the specified type. (Overrides MemberInfo.GetCustomAttributes(Type, Boolean).)
Public methodGetCustomAttributesDataReturns a list of CustomAttributeData objects representing data about the attributes that have been applied to the target member. (Inherited from MemberInfo.)
Public methodGetGetMethod()Returns the public get accessor for this property. (Inherited from PropertyInfo.)
Public methodGetGetMethod(Boolean)Returns the get accessor for this property. (Overrides PropertyInfo.GetGetMethod(Boolean).)
Public methodGetHashCodeReturns the hash code for this instance. (Inherited from PropertyInfo.)
Public methodGetIndexParametersReturns an array of all the index parameters for the property. (Overrides PropertyInfo.GetIndexParameters().)
Public methodGetOptionalCustomModifiersReturns an array of types representing the optional custom modifiers of the property. (Inherited from PropertyInfo.)
Public methodGetRawConstantValueReturns a literal value associated with the property by a compiler. (Inherited from PropertyInfo.)
Public methodGetRequiredCustomModifiersReturns an array of types representing the required custom modifiers of the property. (Inherited from PropertyInfo.)
Public methodGetSetMethod()Returns the public set accessor for this property. (Inherited from PropertyInfo.)
Public methodGetSetMethod(Boolean)Returns the set accessor for this property. (Overrides PropertyInfo.GetSetMethod(Boolean).)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetValue(Object, Object[])Returns the value of the property with optional index values for indexed properties. (Inherited from PropertyInfo.)
Public methodGetValue(Object, BindingFlags, Binder, Object[], CultureInfo)Gets the value of the external COM property by using the COMMemberInfo that was specified to the Initialize method. (Overrides PropertyInfo.GetValue(Object, BindingFlags, Binder, Object[], CultureInfo).)
Public methodInitializeInitializes the information that enables JScript to communicate with this external COM property.
Public methodIsDefinedDetermines whether the specified attribute type is attached to this property. (Overrides MemberInfo.IsDefined(Type, Boolean).)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetValue(Object, Object, Object[])Sets the value of the property with optional index values for index properties. (Inherited from PropertyInfo.)
Public methodSetValue(Object, Object, BindingFlags, Binder, Object[], CultureInfo)Sets the value of the external COM property by using the COMMemberInfo that was specified to the Initialize method. (Overrides PropertyInfo.SetValue(Object, Object, BindingFlags, Binder, Object[], CultureInfo).)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate method_MemberInfo.GetIDsOfNamesMaps a set of names to a corresponding set of dispatch identifiers. (Inherited from MemberInfo.)
Explicit interface implemetationPrivate method_MemberInfo.GetTypeGets a Type object representing the MemberInfo class. (Inherited from MemberInfo.)
Explicit interface implemetationPrivate method_MemberInfo.GetTypeInfoRetrieves the type information for an object, which can then be used to get the type information for an interface. (Inherited from MemberInfo.)
Explicit interface implemetationPrivate method_MemberInfo.GetTypeInfoCountRetrieves the number of type information interfaces that an object provides (either 0 or 1). (Inherited from MemberInfo.)
Explicit interface implemetationPrivate method_MemberInfo.InvokeProvides access to properties and methods exposed by an object. (Inherited from MemberInfo.)
Explicit interface implemetationPrivate method_PropertyInfo.GetIDsOfNamesMaps a set of names to a corresponding set of dispatch identifiers. (Inherited from PropertyInfo.)
Explicit interface implemetationPrivate method_PropertyInfo.GetTypeGets a Type object representing the PropertyInfo type. (Inherited from PropertyInfo.)
Explicit interface implemetationPrivate method_PropertyInfo.GetTypeInfoRetrieves the type information for an object, which can then be used to get the type information for an interface. (Inherited from PropertyInfo.)
Explicit interface implemetationPrivate method_PropertyInfo.GetTypeInfoCountRetrieves the number of type information interfaces that an object provides (either 0 or 1). (Inherited from PropertyInfo.)
Explicit interface implemetationPrivate method_PropertyInfo.InvokeProvides access to properties and methods exposed by an object. (Inherited from PropertyInfo.)
Top

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft