IVisualizerObjectProvider.IsObjectReplaceable Özellik

Tanım

public:
 property bool IsObjectReplaceable { bool get(); };
public:
 property bool IsObjectReplaceable { bool get(); };
public bool IsObjectReplaceable { get; }
member this.IsObjectReplaceable : bool
Public ReadOnly Property IsObjectReplaceable As Boolean

Özellik Değeri

Boolean

Görselleştirilen veri nesnesinin değiştirilebilir olup olmadığını belirler (okuma/yazma) veya değiştirilebilen (salt okuma).

Örnekler

public class DebuggerSide : DialogDebuggerVisualizer  
{  
   override protected void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)  
   {  
      // Get a string from the debuggee side and display it in a message box.  
      String myString = objectProvider.GetObject().ToString();  
      MessageBox.Show(myString);  

      // Modify the string and send it back to the debuggee side.  
      String myNewString = myString.ToUpper();  
      // Make sure the object is replacable before you try to replace it.  
      // Otherwise, you will get an exception.  
      if (objectProvider.IsObjectReplaceable)  
      {  
         objectProvider.ReplaceObject(myNewString);  
      }  
   }  
// Other DebuggerSide methods ommitted for clarity.  
}  

Açıklamalar

Veya çağırarak verileri değiştirmeyi denemeden önce ReplaceData ReplaceObject , nesnenin değiştirilip engellenip engellenmeyeceğini anlamak için bu yöntemi çağırın. Bu yöntem değerini döndürürse false , nesneyi salt okunurdur olarak değerlendirin.

Şunlara uygulanır