RemotingConfiguration.GetRegisteredActivatedServiceTypes Yöntem
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.
Hizmet ucunda kayıtlı olan ve istemciden gelen istek üzerine etkinleştirilebilen nesne türleri dizisini alır.
public:
static cli::array <System::Runtime::Remoting::ActivatedServiceTypeEntry ^> ^ GetRegisteredActivatedServiceTypes();
public static System.Runtime.Remoting.ActivatedServiceTypeEntry[] GetRegisteredActivatedServiceTypes ();
static member GetRegisteredActivatedServiceTypes : unit -> System.Runtime.Remoting.ActivatedServiceTypeEntry[]
Public Shared Function GetRegisteredActivatedServiceTypes () As ActivatedServiceTypeEntry()
Döndürülenler
Hizmet ucunda kayıtlı olan ve istemciden gelen istek üzerine etkinleştirilebilen nesne türleri dizisi.
Özel durumlar
Çağrı yığınında daha yüksek arayanlardan en az birinin uzaktan iletişim türlerini ve kanallarını yapılandırma izni yoktur.
Örnekler
// Check whether the 'MyServerImpl' object is allowed for
// activation or not.
if ( RemotingConfiguration::IsActivationAllowed( MyServerImpl::typeid ) )
{
// Get the registered activated service types .
array<ActivatedServiceTypeEntry^>^myActivatedServiceEntries = RemotingConfiguration::GetRegisteredActivatedServiceTypes();
Console::WriteLine( "The Length of the registered activated service type array is {0}", myActivatedServiceEntries->Length );
Console::WriteLine( "The Object type is:{0}", myActivatedServiceEntries[ 0 ]->ObjectType );
}
// Check whether the 'MyServerImpl' object is allowed for
// activation or not.
if(RemotingConfiguration.IsActivationAllowed(typeof(MyServerImpl)))
{
// Get the registered activated service types .
ActivatedServiceTypeEntry[] myActivatedServiceEntries =
RemotingConfiguration.GetRegisteredActivatedServiceTypes();
Console.WriteLine("The Length of the registered activated service"
+" type array is "+myActivatedServiceEntries.Length);
Console.WriteLine("The Object type is:"
+myActivatedServiceEntries[0].ObjectType);
}
' Check whether the 'MyServerImpl' object is allowed for activation or not.
If RemotingConfiguration.IsActivationAllowed(GetType(MyServerImpl)) Then
' Get the registered activated service types .
Dim myActivatedServiceEntries As ActivatedServiceTypeEntry() = _
RemotingConfiguration.GetRegisteredActivatedServiceTypes()
Console.WriteLine("The Length of the registered activated service type array is " + _
myActivatedServiceEntries.Length.ToString())
Console.WriteLine("The Object type is:" + _
myActivatedServiceEntries(0).ObjectType.ToString())
End If
Açıklamalar
İstemci tarafından etkinleştirilen nesnelerin ayrıntılı açıklaması için bkz. İstemci Etkinleştirme.
Şunlara uygulanır
Ayrıca bkz.
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