Dil

DesignTimeServicesReferenceAttribute Sınıf

Tanım

Ek tasarım zaman hizmetlerinin bulunacağı yeri tanımlar.

Bu öznitelik genellikle tasarım zamanı uzantıları tarafından kullanılır. Genellikle uygulama kodunda kullanılmaz.

[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class DesignTimeServicesReferenceAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly)]
public sealed class DesignTimeServicesReferenceAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)]
public sealed class DesignTimeServicesReferenceAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type DesignTimeServicesReferenceAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly)>]
type DesignTimeServicesReferenceAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)>]
type DesignTimeServicesReferenceAttribute = class
    inherit Attribute
Public NotInheritable Class DesignTimeServicesReferenceAttribute
Inherits Attribute
Devralma
DesignTimeServicesReferenceAttribute
Özellikler

Açıklamalar

Daha fazla bilgi ve örnek için bkz. Veritabanı sağlayıcılarının ve uzantılarının uygulanması .

Oluşturucular

Veri Akışı Adı Description
DesignTimeServicesReferenceAttribute(String, String)

DesignTimeServicesReferenceAttribute sınıfının yeni bir örneğini başlatır.

DesignTimeServicesReferenceAttribute(String)

DesignTimeServicesReferenceAttribute sınıfının yeni bir örneğini başlatır.

Özellikler

Veri Akışı Adı Description
ForProvider

Bu hizmetlerin eklenmesi gereken sağlayıcının adını alır. Null ise, hizmetler tüm sağlayıcılar için eklenir.

TypeName

öğesine ek tasarım zamanı hizmetleri ServiceCollectioneklemek için kullanılabilecek türün derleme nitelikli adını alır. Bu tür uygulamalıdır IDesignTimeServices.

Şunlara uygulanır