Class ServiceNameAttribute
LUCENENET specific abstract class for 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
ServiceNameAttribute
Inherited Members
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.dll
Syntax
public abstract class ServiceNameAttribute : Attribute
Constructors
ServiceNameAttribute(string)
Sole constructor. Initializes the service name.
Declaration
protected ServiceNameAttribute(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name |
Properties
Name
Gets the service name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |