Export (0) Print
Expand All

PropertyBuilder Methods

The PropertyBuilder type exposes the following members.

  Name Description
Public method AddOtherMethod Adds one of the methods other than property accessors that can be associated with a property.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetAccessors() 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 method GetAccessors(Boolean) Returns an array of the public and non-public get and set accessors on this property. This method is not supported. (Overrides PropertyInfo.GetAccessors(Boolean).)
Public method GetConstantValue Returns a literal value associated with the property by a compiler. (Inherited from PropertyInfo.)
Public method GetCustomAttributes(Boolean) Returns an array of all the custom attributes for this property. This method is not supported. (Overrides MemberInfo.GetCustomAttributes(Boolean).)
Public method GetCustomAttributes(Type, Boolean) Returns an array of custom attributes identified by Type. This method is not supported. (Overrides MemberInfo.GetCustomAttributes(Type, Boolean).)
Public method GetGetMethod() Returns the public get accessor for this property. (Inherited from PropertyInfo.)
Public method GetGetMethod(Boolean) Returns the public or non-public get accessor for this property. (Overrides PropertyInfo.GetGetMethod(Boolean).)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetIndexParameters Returns an array of all the index parameters for the property. This method is not supported. (Overrides PropertyInfo.GetIndexParameters().)
Public method GetRawConstantValue Returns a literal value associated with the property by a compiler. (Inherited from PropertyInfo.)
Public method GetSetMethod() Returns the public set accessor for this property. (Inherited from PropertyInfo.)
Public method GetSetMethod(Boolean) Returns the set accessor for this property. (Overrides PropertyInfo.GetSetMethod(Boolean).)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetValue(Object, Object[]) Gets the value of the indexed property by calling the property's getter method. This method is not supported. (Overrides PropertyInfo.GetValue(Object, Object[]).)
Public method GetValue(Object, BindingFlags, Binder, Object[], CultureInfo) Gets the value of a property that has the specified binding, index, and CultureInfo. This method is not supported. (Overrides PropertyInfo.GetValue(Object, BindingFlags, Binder, Object[], CultureInfo).)
Public method IsDefined Indicates whether one or more instances of attributeType are defined on this property. This method is not supported. (Overrides MemberInfo.IsDefined(Type, Boolean).)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetConstant Sets the default value of this property.
Public method SetCustomAttribute Applies a custom attribute by using a custom attribute builder.
Public method SetGetMethod Sets a get accessor, which is the method that gets the property value.
Public method SetSetMethod Sets the set accessor, which is the method that sets the property value.
Public method SetValue(Object, Object, Object[]) Sets the value of the property with optional index values for index properties. This method is not supported. (Overrides PropertyInfo.SetValue(Object, Object, Object[]).)
Public method SetValue(Object, Object, BindingFlags, Binder, Object[], CultureInfo) Sets the property value for the given object to the given value. This method is not supported. (Overrides PropertyInfo.SetValue(Object, Object, BindingFlags, Binder, Object[], CultureInfo).)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft