ApplicationIDAttribute Sınıf

Tanım

Bu derleme için uygulama kimliğini (GUID olarak) belirtir. Bu sınıf devralınamaz.

public ref class ApplicationIDAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly, Inherited=true)]
[System.Runtime.InteropServices.ComVisible(false)]
public sealed class ApplicationIDAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, Inherited=true)>]
[<System.Runtime.InteropServices.ComVisible(false)>]
type ApplicationIDAttribute = class
    inherit Attribute
Public NotInheritable Class ApplicationIDAttribute
Inherits Attribute
Devralma
ApplicationIDAttribute
Öznitelikler

Örnekler

Aşağıdaki kod örneğinde türün kullanımı gösterilmektedir ApplicationIDAttribute .

using System;
using System.EnterpriseServices;
using System.Reflection;

// References:
// System.EnterpriseServices

// The GUID (Globally Unique Identifier) shown below is for example purposes
// only and should be replaced by a GUID that you have generated.
[assembly: ApplicationID("727FC170-1D80-4e89-84CC-22AAB10A6F24")]

public class ApplicationIDAttribute_Value : ServicedComponent
{
    public void ValueExample()
    {
        // Get the ApplicationIDAttribute applied to the assembly.
        ApplicationIDAttribute attribute =
            (ApplicationIDAttribute)Attribute.GetCustomAttribute(
            System.Reflection.Assembly.GetExecutingAssembly(),
            typeof(ApplicationIDAttribute),
            false);

        // Display the value of the attribute's Value property.
        Console.WriteLine("ApplicationIDAttribute.Value: {0}",
            attribute.Value);
    }
}
Imports System.EnterpriseServices
Imports System.Reflection


' References:
' System.EnterpriseServices

' The GUID (Globally Unique Identifier) shown below is for example purposes
' only and should be replaced by a GUID that you have generated.
<Assembly: ApplicationID("727FC170-1D80-4e89-84CC-22AAB10A6F24")> 

Public Class ApplicationIDAttribute_Value
    Inherits ServicedComponent
    
    Public Sub ValueExample() 
        ' Get the ApplicationIDAttribute applied to the assembly.
        Dim attribute As ApplicationIDAttribute = CType(Attribute.GetCustomAttribute(System.Reflection.Assembly.GetExecutingAssembly(), GetType(ApplicationIDAttribute), False), ApplicationIDAttribute)
        
        ' Display the value of the attribute's Value property.
        MsgBox("ApplicationIDAttribute.Value: " & attribute.Value.ToString())

    End Sub
End Class

Açıklamalar

ApplicationIDAttribute oluşturucusunda bir GUID alır. Kayıt gerçekleştiğinde, derlemedeki bileşenler verilen kimlikle bir uygulamaya yüklenir.

Oluşturucular

ApplicationIDAttribute(String)

COM+ uygulamasının ApplicationIDAttribute uygulama kimliğini temsil eden GUID'yi belirterek sınıfının yeni bir örneğini başlatır.

Özellikler

TypeId

Türetilmiş bir sınıfta uygulandığında, bu Attributeiçin benzersiz bir tanımlayıcı alır.

(Devralındığı yer: Attribute)
Value

COM+ uygulamasının GUID değerini alır.

Yöntemler

Equals(Object)

Bu örneğin belirtilen bir nesneye eşit olup olmadığını gösteren bir değeri döndürür.

(Devralındığı yer: Attribute)
GetHashCode()

Bu örneğe ilişkin karma kodu döndürür.

(Devralındığı yer: Attribute)
GetType()

Type Geçerli örneğini alır.

(Devralındığı yer: Object)
IsDefaultAttribute()

Türetilmiş bir sınıfta geçersiz kılındığında, bu örneğin değerinin türetilmiş sınıf için varsayılan değer olup olmadığını gösterir.

(Devralındığı yer: Attribute)
Match(Object)

Türetilmiş bir sınıfta geçersiz kılındığında, bu örneğin belirtilen bir nesneye eşit olup olmadığını belirten bir değer döndürür.

(Devralındığı yer: Attribute)
MemberwiseClone()

Geçerli Objectöğesinin sığ bir kopyasını oluşturur.

(Devralındığı yer: Object)
ToString()

Geçerli nesneyi temsil eden dizeyi döndürür.

(Devralındığı yer: Object)

Belirtik Arabirim Kullanımları

_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

Bir ad kümesini karşılık gelen bir dağıtma tanımlayıcısı kümesine eşler.

(Devralındığı yer: Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

Bir arabirimin tür bilgilerini almak için kullanılabilecek bir nesnenin tür bilgilerini alır.

(Devralındığı yer: Attribute)
_Attribute.GetTypeInfoCount(UInt32)

Bir nesnenin sağladığı tür bilgisi arabirimlerinin sayısını alır (0 ya da 1).

(Devralındığı yer: Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

Bir nesne tarafından sunulan özelliklere ve yöntemlere erişim sağlar.

(Devralındığı yer: Attribute)

Şunlara uygulanır