< Summary

Class:Microsoft.Azure.Search.IndexAnalyzerAttribute
Assembly:Microsoft.Azure.Search.Service
File(s):C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Customizations\Indexes\FieldBuilder\IndexAnalyzerAttribute.cs
Covered lines:4
Uncovered lines:0
Coverable lines:4
Total lines:35
Line coverage:100% (4 of 4)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
get_Name()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Customizations\Indexes\FieldBuilder\IndexAnalyzerAttribute.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License. See License.txt in the project root for
 3// license information.
 4
 5using System;
 6using Microsoft.Azure.Search.Models;
 7
 8namespace Microsoft.Azure.Search
 9{
 10    /// <summary>
 11    /// Indicates that the <see cref="Field"/> generated by <see cref="FieldBuilder"/> for
 12    /// the target property should have its <see cref="Field.IndexAnalyzer"/> property set to the
 13    /// specified analyzer.
 14    /// </summary>
 15    [AttributeUsage(AttributeTargets.Property)]
 16    public class IndexAnalyzerAttribute : Attribute
 17    {
 18        /// <summary>
 19        /// Indicates that the specified analyzer should be used.
 20        /// </summary>
 21        /// <param name="analyzerName">
 22        /// The name of the analyzer. Use one of the names in <c cref="AnalyzerName.AsString">AnalyzerName.AsString</c>
 23        /// or the name of a custom analyzer.
 24        /// </param>
 532025        public IndexAnalyzerAttribute(string analyzerName)
 26        {
 532027            Name = analyzerName;
 532028        }
 29
 30        /// <summary>
 31        /// The name of the analyzer.
 32        /// </summary>
 76033        public string Name { get; }
 34    }
 35}

Methods/Properties

.ctor(...)
get_Name()