Show / Hide Table of Contents

    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
    CodecNameAttribute
    DocValuesFormatNameAttribute
    PostingsFormatNameAttribute
    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 Source

    ServiceNameAttribute(String)

    Sole constructor. Initializes the service name.

    Declaration
    public ServiceNameAttribute(string name)
    Parameters
    Type Name Description
    System.String name

    Properties

    | Improve this Doc View Source

    Name

    Gets the service name.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String

    Extension Methods

    Number.IsNumber(Object)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Licensed to the Apache Software Foundation (ASF)