ערוך

שתף באמצעות


COMPropertyInfo Class

Definition

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.

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

public ref class COMPropertyInfo sealed : System::Reflection::PropertyInfo, Microsoft::JScript::MemberInfoInitializer
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("6A02951C-B129-4d26-AB92-B9CA19BDCA26")]
public sealed class COMPropertyInfo : System.Reflection.PropertyInfo, Microsoft.JScript.MemberInfoInitializer
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("6A02951C-B129-4d26-AB92-B9CA19BDCA26")>]
type COMPropertyInfo = class
    inherit PropertyInfo
    interface MemberInfoInitializer
Public NotInheritable Class COMPropertyInfo
Inherits PropertyInfo
Implements MemberInfoInitializer
Inheritance
COMPropertyInfo
Attributes
Implements

Constructors

COMPropertyInfo()

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

Initializes a new instance of the COMPropertyInfo class.

Properties

Attributes

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

Gets the attributes that are associated with this property.

CanRead

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

Gets a value that indicates whether the property can be read.

CanWrite

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

Gets a value that indicates whether the property can be written to.

CustomAttributes

Gets a collection that contains this member's custom attributes.

(Inherited from MemberInfo)
DeclaringType

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

Gets the type that declares this property.

GetMethod

Gets the get accessor for this property.

(Inherited from PropertyInfo)
IsCollectible

Gets a value that indicates whether this MemberInfo object is part of an assembly held in a collectible AssemblyLoadContext.

(Inherited from MemberInfo)
IsSpecialName

Gets a value indicating whether the property is the special name.

(Inherited from PropertyInfo)
MemberType

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

Gets the type of member that this property is. Identifies the type of class derived from MemberInfo that this class derives from.

MetadataToken

Gets a value that identifies a metadata element.

(Inherited from MemberInfo)
Module

Gets the module in which the type that declares the member represented by the current MemberInfo is defined.

(Inherited from MemberInfo)
Name

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

Gets the name of the external COM property that this object represents.

PropertyType

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

Gets the type of this property.

ReflectedType

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

Gets the class object that was used to obtain this instance through reflection.

SetMethod

Gets the set accessor for this property.

(Inherited from PropertyInfo)

Methods

Equals(Object)

Returns a value that indicates whether this instance is equal to a specified object.

(Inherited from PropertyInfo)
GetAccessors()

Returns an array whose elements reflect the public get and set accessors of the property reflected by the current instance.

(Inherited from PropertyInfo)
GetAccessors(Boolean)

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

Gets an array whose elements contain the get and set accessors of the external COM property that this object represents.

GetCOMMemberInfo()

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

Gets a managed object that enables JScript to communicate with this external COM property.

GetConstantValue()

Returns a literal value associated with the property by a compiler.

(Inherited from PropertyInfo)
GetCustomAttributes(Boolean)

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

Returns an array that contains the custom attributes that are attached to this property.

GetCustomAttributes(Type, Boolean)

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

Returns an array that contains the custom attributes that are attached to this property, searching only for attributes of the specified type.

GetCustomAttributesData()

Returns a list of CustomAttributeData objects representing data about the attributes that have been applied to the target member.

(Inherited from MemberInfo)
GetGetMethod()

Returns the public get accessor for this property.

(Inherited from PropertyInfo)
GetGetMethod(Boolean)

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

Returns the get accessor for this property.

GetHashCode()

Returns the hash code for this instance.

(Inherited from PropertyInfo)
GetIndexParameters()

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

Returns an array of all the index parameters for the property.

GetModifiedPropertyType()

Gets the modified type of this property object.

(Inherited from PropertyInfo)
GetOptionalCustomModifiers()

Returns an array of types representing the optional custom modifiers of the property.

(Inherited from PropertyInfo)
GetRawConstantValue()

Returns a literal value associated with the property by a compiler.

(Inherited from PropertyInfo)
GetRequiredCustomModifiers()

Returns an array of types representing the required custom modifiers of the property.

(Inherited from PropertyInfo)
GetSetMethod()

Returns the public set accessor for this property.

(Inherited from PropertyInfo)
GetSetMethod(Boolean)

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

Returns the set accessor for this property.

GetType()

Discovers the attributes of a property and provides access to property metadata.

(Inherited from PropertyInfo)
GetValue(Object)

Returns the property value of a specified object.

(Inherited from PropertyInfo)
GetValue(Object, BindingFlags, Binder, Object[], CultureInfo)

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

Gets the value of the external COM property by using the COMMemberInfo that was specified to the Initialize(String, COMMemberInfo) method.

GetValue(Object, Object[])

Returns the property value of a specified object with optional index values for indexed properties.

(Inherited from PropertyInfo)
HasSameMetadataDefinitionAs(MemberInfo) (Inherited from MemberInfo)
Initialize(String, COMMemberInfo)

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

Initializes the information that enables JScript to communicate with this external COM property.

IsDefined(Type, Boolean)

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

Determines whether the specified attribute type is attached to this property.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SetValue(Object, Object)

Sets the property value of a specified object.

(Inherited from PropertyInfo)
SetValue(Object, Object, BindingFlags, Binder, Object[], CultureInfo)

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

Sets the value of the external COM property by using the COMMemberInfo that was specified to the Initialize(String, COMMemberInfo) method.

SetValue(Object, Object, Object[])

Sets the property value of a specified object with optional index values for index properties.

(Inherited from PropertyInfo)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

_MemberInfo.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

Maps a set of names to a corresponding set of dispatch identifiers.

(Inherited from MemberInfo)
_MemberInfo.GetType()

Gets a Type object representing the MemberInfo class.

(Inherited from MemberInfo)
_MemberInfo.GetTypeInfo(UInt32, UInt32, IntPtr)

Retrieves the type information for an object, which can then be used to get the type information for an interface.

(Inherited from MemberInfo)
_MemberInfo.GetTypeInfoCount(UInt32)

Retrieves the number of type information interfaces that an object provides (either 0 or 1).

(Inherited from MemberInfo)
_MemberInfo.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

Provides access to properties and methods exposed by an object.

(Inherited from MemberInfo)
_PropertyInfo.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

Maps a set of names to a corresponding set of dispatch identifiers.

(Inherited from PropertyInfo)
_PropertyInfo.GetType()

Gets a Type object representing the PropertyInfo type.

(Inherited from PropertyInfo)
_PropertyInfo.GetTypeInfo(UInt32, UInt32, IntPtr)

Retrieves the type information for an object, which can then be used to get the type information for an interface.

(Inherited from PropertyInfo)
_PropertyInfo.GetTypeInfoCount(UInt32)

Retrieves the number of type information interfaces that an object provides (either 0 or 1).

(Inherited from PropertyInfo)
_PropertyInfo.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

Provides access to properties and methods exposed by an object.

(Inherited from PropertyInfo)

Extension Methods

GetCustomAttribute(MemberInfo, Type)

Retrieves a custom attribute of a specified type that is applied to a specified member.

GetCustomAttribute(MemberInfo, Type, Boolean)

Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member.

GetCustomAttribute<T>(MemberInfo)

Retrieves a custom attribute of a specified type that is applied to a specified member.

GetCustomAttribute<T>(MemberInfo, Boolean)

Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member.

GetCustomAttributes(MemberInfo)

Retrieves a collection of custom attributes that are applied to a specified member.

GetCustomAttributes(MemberInfo, Boolean)

Retrieves a collection of custom attributes that are applied to a specified member, and optionally inspects the ancestors of that member.

GetCustomAttributes(MemberInfo, Type)

Retrieves a collection of custom attributes of a specified type that are applied to a specified member.

GetCustomAttributes(MemberInfo, Type, Boolean)

Retrieves a collection of custom attributes of a specified type that are applied to a specified member, and optionally inspects the ancestors of that member.

GetCustomAttributes<T>(MemberInfo)

Retrieves a collection of custom attributes of a specified type that are applied to a specified member.

GetCustomAttributes<T>(MemberInfo, Boolean)

Retrieves a collection of custom attributes of a specified type that are applied to a specified member, and optionally inspects the ancestors of that member.

IsDefined(MemberInfo, Type)

Indicates whether custom attributes of a specified type are applied to a specified member.

IsDefined(MemberInfo, Type, Boolean)

Indicates whether custom attributes of a specified type are applied to a specified member, and, optionally, applied to its ancestors.

GetMetadataToken(MemberInfo)

Gets a metadata token for the given member, if available.

HasMetadataToken(MemberInfo)

Returns a value that indicates whether a metadata token is available for the specified member.

GetAccessors(PropertyInfo)
GetAccessors(PropertyInfo, Boolean)
GetGetMethod(PropertyInfo)
GetGetMethod(PropertyInfo, Boolean)
GetSetMethod(PropertyInfo)
GetSetMethod(PropertyInfo, Boolean)

Applies to

See also