Compartir a través de


GacMembershipCondition Constructor

Definición

Inicializa una nueva instancia de la clase GacMembershipCondition.

public:
 GacMembershipCondition();
public GacMembershipCondition ();
Public Sub New ()

Ejemplos

En el ejemplo de código siguiente se muestra el uso del GacMembershipCondition constructor . Este ejemplo forma parte de un ejemplo más grande proporcionado para el tema de clase GacMembershipCondition .

GacMembershipCondition ^ Gac1 = gcnew GacMembershipCondition;
try
{
    Console::WriteLine(
        "Result of GetHashCode for a GacMembershipCondition = {0}\n",
        Gac1->GetHashCode());
}
catch (Exception^ e) 
{
     Console::WriteLine("GetHashCode failed : {0}{1}", Gac1, e);
     return false;
}
GacMembershipCondition Gac1 = new GacMembershipCondition();
try
{
    Console.WriteLine(
        "Result of GetHashCode for a GacMembershipCondition = " + 
        Gac1.GetHashCode().ToString() + "\n");
}
catch (Exception e)
{
    Console.WriteLine("GetHashCode failed : " + Gac1.ToString() + e);
    return false;
}
Dim Gac1 As New GacMembershipCondition
Try
    Console.WriteLine( _
        ("Result of GetHashCode for a GacMembershipCondition = " _
        & Gac1.GetHashCode().ToString() & ControlChars.Lf))
Catch e As Exception
    Console.WriteLine(("GetHashCode failed : " & _
        Gac1.ToString() & e.ToString()))
    Return False
End Try

Comentarios

El código satisface esta condición de pertenencia si está instalada en la caché global de ensamblados.

Se aplica a