InvokeMethod.GenericTypeArguments Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Argumen jenis generik dari metode yang terkandung.
public:
property System::Collections::ObjectModel::Collection<Type ^> ^ GenericTypeArguments { System::Collections::ObjectModel::Collection<Type ^> ^ get(); };
public System.Collections.ObjectModel.Collection<Type> GenericTypeArguments { get; }
member this.GenericTypeArguments : System.Collections.ObjectModel.Collection<Type>
Public ReadOnly Property GenericTypeArguments As Collection(Of Type)
Nilai Properti
Argumen.
Contoh
Sampel kode berikut menunjukkan pengaturan GenericTypeArguments aktivitas InvokeMethod . Contoh ini berasal dari sampel Menggunakan Aktivitas InvokeMethod .
new InvokeMethod
{
TargetObject = new InArgument<TestClass>(ctx => testClass),
MethodName = "GenericInstanceMethod",
GenericTypeArguments = { typeof(string) },
Parameters =
{
new InArgument<string>("Hello world")
}
},
Keterangan
Argumen jenis generik hanya boleh diatur jika metode yang dipanggil bersifat generik.