DynamicObject.TryDeleteIndex(DeleteIndexBinder, Object[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides the implementation for operations that delete an object by index. This method is not intended for use in C# or Visual Basic.
public:
virtual bool TryDeleteIndex(System::Dynamic::DeleteIndexBinder ^ binder, cli::array <System::Object ^> ^ indexes);
public virtual bool TryDeleteIndex (System.Dynamic.DeleteIndexBinder binder, object[] indexes);
abstract member TryDeleteIndex : System.Dynamic.DeleteIndexBinder * obj[] -> bool
override this.TryDeleteIndex : System.Dynamic.DeleteIndexBinder * obj[] -> bool
Public Overridable Function TryDeleteIndex (binder As DeleteIndexBinder, indexes As Object()) As Boolean
Parameters
- binder
- DeleteIndexBinder
Provides information about the deletion.
- indexes
- Object[]
The indexes to be deleted.
Returns
true
if the operation is successful; otherwise, false
. If this method returns false
, the run-time binder of the language determines the behavior. (In most cases, a language-specific run-time exception is thrown.)
Remarks
Classes derived from the DynamicObject class can override this method to specify how a value that has a specified index should be deleted. When the method is not overridden, the run-time binder of the language determines the behavior. (In most cases, a language-specific run-time exception is thrown.)
C# and Visual Basic compilers never emit code to use this method because they do not support this kind of operation. This method is intended for languages that support syntax for deleting objects by index, such as del sampleObject[1,2]
in Python.
Applies to
Povratne informacije
https://aka.ms/ContentUserFeedback.
Kmalu na voljo: V letu 2024 bomo ukinili storitev Težave v storitvi GitHub kot mehanizem za povratne informacije za vsebino in jo zamenjali z novim sistemom za povratne informacije. Za več informacij si oglejte:Pošlji in prikaži povratne informacije za