PlayRecordCallback
Dieser Delegat wird nicht verwendet.
Ein Beispiel für die Enumeration der Datensätze einer Metadatei finden Sie unter EnumerateMetafile.
msdn.microsoft.comPlayRecordCallback
This delegate is not used.
For an example of enumerating the records of a metafile, see EnumerateMetafile.
msdn.microsoft.comEbenso ist der Rückgabetyp eines Delegaten kompatibel mit dem Rückgabetyp einer Methode, wenn der Rückgabetyp der Methode restriktiver ist als der Rückgabetyp des Delegaten, da so gewährleistet ist, dass der Rückgabewert der Methode problemlos in den Rückgabetyp des Delegaten umgewandelt werden kann.
Beispielsweise kann ein Delegat mit dem Parametertyp IEnumerable und dem Rückgabetyp Object eine Methode mit dem Parametertyp Object und dem Rückgabetyp IEnumerable darstellen.
Weitere Informationen und Beispielcode finden Sie unter Delegate.CreateDelegate(Type, Object, MethodInfo).
msdn.microsoft.comSimilarly, the return type of a delegate is compatible with the return type of a method if the return type of the method is more restrictive than the return type of the delegate, because this guarantees that the return value of the method can be cast safely to the return type of the delegate.
For example, a delegate that has a parameter of type IEnumerable and a return type of Object can represent a method that has a parameter of type Object and a return value of type IEnumerable.
For more information and example code, see Delegate.CreateDelegate(Type, Object, MethodInfo).
msdn.microsoft.comobjects = strings ;
Eine generische Schnittstelle oder ein generischer Delegat werden als variant bezeichnet, wenn die zugehörigen generischen Parameter als Ko- oder Kontravariante deklariert werden.
Sowohl in C # als auch in Visual Basic können Sie eigene variante Schnittstellen und Delegaten erstellen.
msdn.microsoft.comobjects = strings ;
A generic interface or delegate is called variant if its generic parameters are declared covariant or contravariant.
Both C # and Visual Basic enable you to create your own variant interfaces and delegates.
msdn.microsoft.comMöchtest du ein Wort, eine Phrase oder eine Übersetzung hinzufügen?
Sende uns gern einen neuen Eintrag.