======Класс Attribute====== Представляет базовый класс для настраиваемых атрибутов. * **Пространство имен:** [[developers:references:system|System]] * **Сборка:** mscorlib (в mscorlib.dll) =====Иерархия наследования===== * [[developers:references:system.object|System.Object]] * System.Attribute * [[developers:references:system.attributeusageattribute|System.AttributeUsageAttribute]] * [[developers:references:system.clscompliantattribute|System.CLSCompliantAttribute]] * [[developers:references:system.contextstaticattribute|System.ContextStaticAttribute]] * [[developers:references:system.flagsattribute|System.FlagsAttribute]] * [[developers:references:system.loaderoptimizationattribute|System.LoaderOptimizationAttribute]] * [[developers:references:system.mtathreadattribute|System.MTAThreadAttribute]] * [[developers:references:system.nonserializedattribute|System.NonSerializedAttribute]] * [[developers:references:system.obsoleteattribute|System.ObsoleteAttribute]] * [[developers:references:system.paramarrayattribute|System.ParamArrayAttribute]] * [[developers:references:system.serializableattribute|System.SerializableAttribute]] * [[developers:references:system.stathreadattribute|System.STAThreadAttribute]] * [[developers:references:system.threadstaticattribute|System.ThreadStaticAttribute]] * [[developers:references:system.xmlignorememberattribute|System.XmlIgnoreMemberAttribute]] * [[developers:references:topomatic.alg.runtime.design.stationfromplanattribute|Topomatic.Alg.Runtime.Design.StationFromPlanAttribute]] * [[developers:references:topomatic.alg.runtime.design.stationfromprofileattribute|Topomatic.Alg.Runtime.Design.StationFromProfileAttribute]] * [[developers:references:topomatic.alg.runtime.expimp.dbffieldattribute|Topomatic.Alg.Runtime.ExpImp.DbfFieldAttribute]] * [[developers:references:topomatic.cad.foundation.design.backgoundcolorattribute|Topomatic.Cad.Foundation.Design.BackgoundColorAttribute]] * [[developers:references:topomatic.cad.foundation.design.byblockattribute|Topomatic.Cad.Foundation.Design.ByBlockAttribute]] * [[developers:references:topomatic.cad.foundation.design.bylayerattribute|Topomatic.Cad.Foundation.Design.ByLayerAttribute]] * [[developers:references:topomatic.cad.foundation.design.nonecolorattribute|Topomatic.Cad.Foundation.Design.NoneColorAttribute]] * [[developers:references:topomatic.cds.design.maxminvalueattribute|Topomatic.Cds.Design.MaxMinValueAttribute]] * [[developers:references:topomatic.cds.design.stepvalueattribute|Topomatic.Cds.Design.StepValueAttribute]] * [[developers:references:topomatic.cds.design.validdoublevaluesattribute|Topomatic.Cds.Design.ValidDoubleValuesAttribute]] * [[developers:references:topomatic.cds.design.validintvaluesattribute|Topomatic.Cds.Design.ValidIntValuesAttribute]] * [[developers:references:topomatic.componentmodel.defaultwidthattribute|Topomatic.ComponentModel.DefaultWidthAttribute]] * [[developers:references:topomatic.componentmodel.design.indentattribute|Topomatic.ComponentModel.Design.IndentAttribute]] * [[developers:references:topomatic.componentmodel.design.summarizeattribute|Topomatic.ComponentModel.Design.SummarizeAttribute]] * [[developers:references:topomatic.componentmodel.designaliasattribute|Topomatic.ComponentModel.DesignAliasAttribute]] * [[developers:references:topomatic.componentmodel.doublemaxminattribute|Topomatic.ComponentModel.DoubleMaxMinAttribute]] * [[developers:references:topomatic.componentmodel.doublestepattribute|Topomatic.ComponentModel.DoubleStepAttribute]] * [[developers:references:topomatic.componentmodel.inspectdescendanttypesattribute|Topomatic.ComponentModel.InspectDescendantTypesAttribute]] * [[developers:references:topomatic.componentmodel.keyfieldattribute|Topomatic.ComponentModel.KeyFieldAttribute]] * [[developers:references:topomatic.componentmodel.propertyeditorattribute|Topomatic.ComponentModel.PropertyEditorAttribute]] * [[developers:references:topomatic.componentmodel.propertyproviderattribute|Topomatic.ComponentModel.PropertyProviderAttribute]] * [[developers:references:topomatic.componentmodel.propertytypeconverterattribute|Topomatic.ComponentModel.PropertyTypeConverterAttribute]] * [[developers:references:topomatic.componentmodel.propertyupdatesequenceattribute|Topomatic.ComponentModel.PropertyUpdateSequenceAttribute]] * [[developers:references:topomatic.componentmodel.sharedpropertyattribute|Topomatic.ComponentModel.SharedPropertyAttribute]] * [[developers:references:topomatic.componentmodel.visualstyleattribute|Topomatic.ComponentModel.VisualStyleAttribute]] * [[developers:references:topomatic.crs.design.codeexpressionproperty|Topomatic.Crs.Design.CodeExpressionProperty]] * [[developers:references:topomatic.crs.design.crsdesigninitializatorattribute|Topomatic.Crs.Design.CrsDesignInitializatorAttribute]] * [[developers:references:topomatic.crs.design.crsdesignpropertyproviderattribute|Topomatic.Crs.Design.CrsDesignPropertyProviderAttribute]] * [[developers:references:topomatic.crs.design.crsdesignproviderattribute|Topomatic.Crs.Design.CrsDesignProviderAttribute]] * [[developers:references:topomatic.crs.rail.rtcdwgtagnameattribute|Topomatic.Crs.Rail.RTCDwgTagNameAttribute]] * [[developers:references:topomatic.crs.rail.rtcimageattribute|Topomatic.Crs.Rail.RTCImageAttribute]] * [[developers:references:topomatic.dwg.design.entitycontrollerattribute|Topomatic.Dwg.Design.EntityControllerAttribute]] * [[developers:references:topomatic.glg.design.maxminvalueattribute|Topomatic.Glg.Design.MaxMinValueAttribute]] * [[developers:references:topomatic.glg.design.stepvalueattribute|Topomatic.Glg.Design.StepValueAttribute]] * [[developers:references:topomatic.roadsigns.design.maxminvalueattribute|Topomatic.RoadSigns.Design.MaxMinValueAttribute]] * [[developers:references:topomatic.roadsigns.design.stepvalueattribute|Topomatic.RoadSigns.Design.StepValueAttribute]] * [[developers:references:topomatic.smt.design.providerandomizeattribute|Topomatic.Smt.Design.ProvideRandomizeAttribute]] =====Синтаксис===== public abstract class Attribute : _Attribute =====Свойства===== ^Тип^Имя^Описание^ |{{developers:references:property.png|Свойство}}|[[developers:references:system.attribute.typeid|TypeId]]| При реализации в производном классе возвращает уникальный идентификатор для этого [[developers:references:system.attribute|Attribute]] . | =====Методы===== ^Тип^Имя^Описание^ |{{developers:references:method.png|Метод}}|[[developers:references:system.attribute.equals_system.object|Equals(Object)]]| Возвращает значение, указывающее, равен ли этот экземпляр указанному объекту. (Переопределяет [[developers:references:system.object.equals_system.object|Object.Equals(Object)]].)| |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattribute_system.reflection.module_system.type|GetCustomAttribute(Module, Type)]]| Извлекает настраиваемый атрибут, примененный к модулю.Параметры определяют модуль и тип настраиваемого атрибута для поиска. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattribute_system.reflection.module_system.type_system.boolean|GetCustomAttribute(Module, Type, Boolean)]]| Извлекает настраиваемый атрибут, примененный к модулю.Параметры определяют модуль, тип настраиваемого атрибута для поиска и игнорированный параметр поиска. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattribute_system.reflection.parameterinfo_system.type|GetCustomAttribute(ParameterInfo, Type)]]| Извлекает настраиваемый атрибут, примененный к параметру метода.Параметры определяют параметр метода и тип настраиваемого атрибута для поиска. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattribute_system.reflection.memberinfo_system.type|GetCustomAttribute(MemberInfo, Type)]]| Извлекает настраиваемый атрибут, примененный к члену типа.Параметры определяют член и тип настраиваемого атрибута для поиска. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattribute_system.reflection.memberinfo_system.type_system.boolean|GetCustomAttribute(MemberInfo, Type, Boolean)]]| Извлекает настраиваемый атрибут, примененный к члену типа.Параметры определяют член и тип настраиваемого атрибута для поиска и признак поиска родительского элемента члена. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattribute_system.reflection.assembly_system.type|GetCustomAttribute(Assembly, Type)]]| Извлекает настраиваемый атрибут, примененный к заданной сборке.Параметры определяют сборку и тип настраиваемого атрибута для поиска. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattribute_system.reflection.assembly_system.type_system.boolean|GetCustomAttribute(Assembly, Type, Boolean)]]| Извлекает настраиваемый атрибут, примененный к сборке.Параметры определяют сборку, тип настраиваемого атрибута для поиска и игнорированный параметр поиска. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattribute_system.reflection.parameterinfo_system.type_system.boolean|GetCustomAttribute(ParameterInfo, Type, Boolean)]]| Извлекает настраиваемый атрибут, примененный к параметру метода.Параметры определяют параметр метода и тип настраиваемого атрибута для поиска и признак поиска родительского элемента параметра метода. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattributes_system.reflection.assembly|GetCustomAttributes(Assembly)]]| Извлекает массив настраиваемых атрибутов, примененных к сборке.Параметр задает имя сборки. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattributes_system.reflection.assembly_system.boolean|GetCustomAttributes(Assembly, Boolean)]]| Извлекает массив настраиваемых атрибутов, примененных к сборке.Параметры задают сборку и игнорируемый параметр поиска. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattributes_system.reflection.assembly_system.type|GetCustomAttributes(Assembly, Type)]]| Извлекает массив настраиваемых атрибутов, примененных к сборке.Параметры определяют сборку и тип настраиваемого атрибута для поиска. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattributes_system.reflection.module_system.type_system.boolean|GetCustomAttributes(Module, Type, Boolean)]]| Извлекает массив настраиваемых атрибутов, примененных к модулю.Параметры определяют модуль, тип настраиваемого атрибута для поиска и игнорированный параметр поиска. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattributes_system.reflection.module|GetCustomAttributes(Module)]]| Извлекает массив настраиваемых атрибутов, примененных к модулю.Параметр задает имя этого модуля. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattributes_system.reflection.module_system.type|GetCustomAttributes(Module, Type)]]| Извлекает массив настраиваемых атрибутов, примененных к модулю.Параметры определяют модуль и тип настраиваемого атрибута для поиска. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattributes_system.reflection.assembly_system.type_system.boolean|GetCustomAttributes(Assembly, Type, Boolean)]]| Извлекает массив настраиваемых атрибутов, примененных к сборке.Параметры определяют сборку, тип настраиваемого атрибута для поиска и игнорированный параметр поиска. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattributes_system.reflection.module_system.boolean|GetCustomAttributes(Module, Boolean)]]| Извлекает массив настраиваемых атрибутов, примененных к модулю.Параметры задают модуль и игнорируемый параметр поиска. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattributes_system.reflection.memberinfo_system.boolean|GetCustomAttributes(MemberInfo, Boolean)]]| Извлекает массив настраиваемых атрибутов, примененных к члену типа.Параметры определяют член и тип настраиваемого атрибута для поиска и признак поиска родительского элемента члена. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattributes_system.reflection.parameterinfo_system.boolean|GetCustomAttributes(ParameterInfo, Boolean)]]| Извлекает массив настраиваемых атрибутов, примененных к параметру метода.Параметры определяют параметр метода и признак поиска родительского элемента параметра метода. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattributes_system.reflection.memberinfo_system.type|GetCustomAttributes(MemberInfo, Type)]]| Извлекает массив настраиваемых атрибутов, примененных к члену типа.Параметры определяют член и тип настраиваемого атрибута для поиска. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattributes_system.reflection.memberinfo_system.type_system.boolean|GetCustomAttributes(MemberInfo, Type, Boolean)]]| Извлекает массив настраиваемых атрибутов, примененных к члену типа.Параметры определяют член и тип настраиваемого атрибута для поиска и признак поиска родительского элемента члена. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattributes_system.reflection.parameterinfo_system.type_system.boolean|GetCustomAttributes(ParameterInfo, Type, Boolean)]]| Извлекает массив настраиваемых атрибутов, примененных к параметру метода.Параметры определяют параметр метода и тип настраиваемого атрибута для поиска и признак поиска родительского элемента параметра метода. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattributes_system.reflection.parameterinfo_system.type|GetCustomAttributes(ParameterInfo, Type)]]| Извлекает массив настраиваемых атрибутов, примененных к параметру метода.Параметры определяют параметр метода и тип настраиваемого атрибута для поиска. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattributes_system.reflection.parameterinfo|GetCustomAttributes(ParameterInfo)]]| Извлекает массив настраиваемых атрибутов, примененных к параметру метода.В параметре задается параметр метода. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.getcustomattributes_system.reflection.memberinfo|GetCustomAttributes(MemberInfo)]]| Извлекает массив настраиваемых атрибутов, примененных к члену типа.Параметр задает имя этого члена. | |{{developers:references:method.png|Метод}}|[[developers:references:system.attribute.gethashcode|GetHashCode()]]| Возвращает хэш-код для данного экземпляра. (Переопределяет [[developers:references:system.object.gethashcode|Object.GetHashCode()]].)| |{{developers:references:method.png|Метод}}|[[developers:references:system.object.gettype|GetType()]]| Возвращает объект [[developers:references:system.type|Type]] для текущего экземпляра. (Наследуется от [[developers:references:system.object|Object]].)| |{{developers:references:method.png|Метод}}|[[developers:references:system.attribute.isdefaultattribute|IsDefaultAttribute()]]| При переопределении в производном классе показывает, является ли значение данного экземпляра значением по умолчанию для производного класса. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.isdefined_system.reflection.parameterinfo_system.type_system.boolean|IsDefined(ParameterInfo, Type, Boolean)]]| Определяет, применены ли какие-либо настраиваемые атрибуты к параметру метода.Параметры определяют параметр метода и тип настраиваемого атрибута для поиска и признак поиска родительского элемента параметра метода. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.isdefined_system.reflection.assembly_system.type|IsDefined(Assembly, Type)]]| Определяет, применены ли какие-либо настраиваемые атрибуты к сборке.Параметры определяют сборку и тип настраиваемого атрибута для поиска. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.isdefined_system.reflection.assembly_system.type_system.boolean|IsDefined(Assembly, Type, Boolean)]]| Определяет, применены ли какие-либо настраиваемые атрибуты к сборке.Параметры определяют сборку, тип настраиваемого атрибута для поиска и игнорированный параметр поиска. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.isdefined_system.reflection.memberinfo_system.type_system.boolean|IsDefined(MemberInfo, Type, Boolean)]]| Определяет, применены ли какие-либо настраиваемые атрибуты к члену типа.Параметры определяют член и тип настраиваемого атрибута для поиска и признак поиска родительского элемента члена. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.isdefined_system.reflection.module_system.type_system.boolean|IsDefined(Module, Type, Boolean)]]| Определяет, применены ли какие-либо настраиваемые атрибуты к модулю.Параметры определяют модуль, тип настраиваемого атрибута для поиска и игнорированный параметр поиска. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.isdefined_system.reflection.module_system.type|IsDefined(Module, Type)]]| Определяет применены ли какие-либо пользовательские атрибуты заданного типа к модулю.Параметры определяют модуль и тип настраиваемого атрибута для поиска. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.isdefined_system.reflection.memberinfo_system.type|IsDefined(MemberInfo, Type)]]| Определяет, применены ли какие-либо настраиваемые атрибуты к члену типа.Параметры определяют член и тип настраиваемого атрибута для поиска. | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:system.attribute.isdefined_system.reflection.parameterinfo_system.type|IsDefined(ParameterInfo, Type)]]| Определяет, применены ли какие-либо настраиваемые атрибуты к параметру метода.Параметры определяют параметр метода и тип настраиваемого атрибута для поиска. | |{{developers:references:method.png|Метод}}|[[developers:references:system.attribute.match_system.object|Match(Object)]]| При переопределении в производном классе возвращает значение, указывающее, является ли этот экземпляр равным заданному объекту. | |{{developers:references:method.png|Метод}}|[[developers:references:system.object.tostring|ToString()]]| Возвращает строку, представляющую текущий объект. (Наследуется от [[developers:references:system.object|Object]].)|