MarkupExtensionReturnTypeAttribute Oluşturucular
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
MarkupExtensionReturnTypeAttribute sınıfının yeni bir örneğini başlatır.
Aşırı Yüklemeler
MarkupExtensionReturnTypeAttribute() |
MarkupExtensionReturnTypeAttribute sınıfının yeni bir örneğini başlatır. |
MarkupExtensionReturnTypeAttribute(Type) |
Sağlanan Typekullanarak sınıfının yeni bir örneğini MarkupExtensionReturnTypeAttribute başlatır. |
MarkupExtensionReturnTypeAttribute(Type, Type) |
Geçersiz.
Kaldırıl -mış; kullanmayın. |
MarkupExtensionReturnTypeAttribute()
MarkupExtensionReturnTypeAttribute sınıfının yeni bir örneğini başlatır.
public:
MarkupExtensionReturnTypeAttribute();
public MarkupExtensionReturnTypeAttribute ();
Public Sub New ()
Şunlara uygulanır
MarkupExtensionReturnTypeAttribute(Type)
Sağlanan Typekullanarak sınıfının yeni bir örneğini MarkupExtensionReturnTypeAttribute başlatır.
public:
MarkupExtensionReturnTypeAttribute(Type ^ returnType);
public MarkupExtensionReturnTypeAttribute (Type returnType);
new System.Windows.Markup.MarkupExtensionReturnTypeAttribute : Type -> System.Windows.Markup.MarkupExtensionReturnTypeAttribute
Public Sub New (returnType As Type)
Parametreler
- returnType
- Type
Bu özniteliğin rapor verdiği dönüş türü.
Açıklamalar
Türetilmiş MarkupExtension bir özel sınıf, uygulaması tarafından ProvideValue döndürülen tür açısından güvenli dönüş türünü belirtmek için bu özniteliği uygulamalıdır.
Şunlara uygulanır
MarkupExtensionReturnTypeAttribute(Type, Type)
Dikkat
The expressionType argument is not used by the XAML parser. To specify the expected return type, use MarkupExtensionReturnTypeAttribute(Type). To specify custom handling for expression types, use XamlSetMarkupExtensionAttribute.
Kaldırıl -mış; kullanmayın.
public:
MarkupExtensionReturnTypeAttribute(Type ^ returnType, Type ^ expressionType);
public MarkupExtensionReturnTypeAttribute (Type returnType, Type expressionType);
[System.Obsolete("The expressionType argument is not used by the XAML parser. To specify the expected return type, use MarkupExtensionReturnTypeAttribute(Type). To specify custom handling for expression types, use XamlSetMarkupExtensionAttribute.")]
public MarkupExtensionReturnTypeAttribute (Type returnType, Type expressionType);
new System.Windows.Markup.MarkupExtensionReturnTypeAttribute : Type * Type -> System.Windows.Markup.MarkupExtensionReturnTypeAttribute
[<System.Obsolete("The expressionType argument is not used by the XAML parser. To specify the expected return type, use MarkupExtensionReturnTypeAttribute(Type). To specify custom handling for expression types, use XamlSetMarkupExtensionAttribute.")>]
new System.Windows.Markup.MarkupExtensionReturnTypeAttribute : Type * Type -> System.Windows.Markup.MarkupExtensionReturnTypeAttribute
Public Sub New (returnType As Type, expressionType As Type)
Parametreler
- returnType
- Type
Bu .NET Framework özniteliğinin rapor verdiği dönüş türü.
- expressionType
- Type
Kaldırıl -mış; kullanmayın.
- Öznitelikler
Açıklamalar
Bir ifade için MarkupExtensionReturnTypeAttribute ikinci parametreyi bildiren biçimi kullanım dışı/kullanım dışıdır ve kullanılmamalıdır. Ertelenmiş değerlendirme için bir ifade veya başka bir tür veya model olası bir dönüş türüyse, bunun yerine dönüş türüyle Object öznitelik oluşturmanız gerekir.
Şunlara uygulanır
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin