Search Results for

    Show / Hide Table of Contents

    Class ExtensionsForICustomAttributeProvider

    Extension methods for ICustomAttributeProvider

    Inheritance
    object
    ExtensionsForICustomAttributeProvider
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: FluentMigrator.Infrastructure.Extensions
    Assembly: FluentMigrator.dll
    Syntax
    public static class ExtensionsForICustomAttributeProvider

    Methods

    | Edit this page View Source

    GetAllAttributes<T>(ICustomAttributeProvider)

    Get all attributes of exactly the given type

    Declaration
    public static T[] GetAllAttributes<T>(this ICustomAttributeProvider member) where T : Attribute
    Parameters
    Type Name Description
    ICustomAttributeProvider member

    The ICustomAttributeProvider

    Returns
    Type Description
    T[]

    The found attributes

    Type Parameters
    Name Description
    T

    The attribute type to search for

    | Edit this page View Source

    GetAllAttributes<T>(ICustomAttributeProvider, bool)

    Get all attributes of the given type

    Declaration
    public static T[] GetAllAttributes<T>(this ICustomAttributeProvider member, bool inherit) where T : Attribute
    Parameters
    Type Name Description
    ICustomAttributeProvider member

    The ICustomAttributeProvider

    bool inherit

    true when attributes derived form T should be returned too

    Returns
    Type Description
    T[]

    The found attributes

    Type Parameters
    Name Description
    T

    The attribute type to search for

    | Edit this page View Source

    GetOneAttribute<T>(ICustomAttributeProvider)

    Get the first attribute of exactly the given type

    Declaration
    public static T GetOneAttribute<T>(this ICustomAttributeProvider member) where T : Attribute
    Parameters
    Type Name Description
    ICustomAttributeProvider member

    The ICustomAttributeProvider

    Returns
    Type Description
    T

    The found attribute or null

    Type Parameters
    Name Description
    T

    The attribute type to search for

    | Edit this page View Source

    GetOneAttribute<T>(ICustomAttributeProvider, bool)

    Get the first attribute of the given type

    Declaration
    public static T GetOneAttribute<T>(this ICustomAttributeProvider member, bool inherit) where T : Attribute
    Parameters
    Type Name Description
    ICustomAttributeProvider member

    The ICustomAttributeProvider

    bool inherit

    true when attributes derived form T should be returned too

    Returns
    Type Description
    T

    The found attribute or null

    Type Parameters
    Name Description
    T

    The attribute type to search for

    | Edit this page View Source

    HasAttribute<T>(ICustomAttributeProvider)

    Returns a value indicating whether the custom attribute provider contains the given attribute

    Declaration
    public static bool HasAttribute<T>(this ICustomAttributeProvider member) where T : Attribute
    Parameters
    Type Name Description
    ICustomAttributeProvider member

    The ICustomAttributeProvider

    Returns
    Type Description
    bool

    true when an attribute with the given type could be found

    Type Parameters
    Name Description
    T

    The attribute type to search for

    | Edit this page View Source

    HasAttribute<T>(ICustomAttributeProvider, bool)

    Returns a value indicating whether the custom attribute provider contains the given attribute

    Declaration
    public static bool HasAttribute<T>(this ICustomAttributeProvider member, bool inherit) where T : Attribute
    Parameters
    Type Name Description
    ICustomAttributeProvider member

    The ICustomAttributeProvider

    bool inherit

    true when attributes derived form T should be returned too

    Returns
    Type Description
    bool

    true when an attribute with the given type could be found

    Type Parameters
    Name Description
    T

    The attribute type to search for

    • Edit this page
    • View Source
    In this article
    Back to top
    Copyright © 2018 Fluent Migrator Project
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.