Class ServiceNameAttribute
LUCENENET specific abstract class for System.Attributes that can be used to override the default convention-based names of services. For example, "Lucene40Codec" will by convention be named "Lucene40". Using the CodecNameAttribute, the name can be overridden with a custom value.
Inheritance
System.Object
System.Attribute
ServiceNameAttribute
Inherited Members
System.Attribute.Equals(System.Object)
System.Attribute.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.dll
Syntax
public abstract class ServiceNameAttribute : Attribute
Constructors
| Improve this Doc View SourceServiceNameAttribute(String)
Sole constructor. Initializes the service name.
Declaration
public ServiceNameAttribute(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Properties
| Improve this Doc View SourceName
Gets the service name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |