CannotFindMemberException Class

 

The exception that is thrown when you try to programmatically add or remove an object from the data cache in a document-level customization, but the specified object is not declared in the specified host item class.

Namespace:   Microsoft.VisualStudio.Tools.Applications.Runtime
Assembly:  Microsoft.VisualStudio.Tools.Applications.Runtime (in Microsoft.VisualStudio.Tools.Applications.Runtime.dll)

System::Object
  System::Exception
    Microsoft.VisualStudio.Tools.Applications.Runtime::RuntimeException
      Microsoft.VisualStudio.Tools.Applications.Runtime::CannotFindMemberException

[SerializableAttribute]
[PermissionSetAttribute(SecurityAction::Demand, Name = "FullTrust")]
public ref class CannotFindMemberException sealed : RuntimeException

NameDescription
System_CAPS_pubmethodCannotFindMemberException()

This API supports the product infrastructure and is not intended to be used directly from your code.

System_CAPS_pubmethodCannotFindMemberException(String^)

This API supports the product infrastructure and is not intended to be used directly from your code.

System_CAPS_pubmethodCannotFindMemberException(String^, Exception^)

This API supports the product infrastructure and is not intended to be used directly from your code.

System_CAPS_pubmethodCannotFindMemberException(String^, Type^)

This API supports the product infrastructure and is not intended to be used directly from your code.

NameDescription
System_CAPS_pubpropertyData

(Inherited from Exception.)

System_CAPS_pubpropertyHelpLink

(Inherited from Exception.)

System_CAPS_pubpropertyHResult

(Inherited from Exception.)

System_CAPS_pubpropertyInnerException

(Inherited from Exception.)

System_CAPS_pubpropertyMessage

(Inherited from Exception.)

System_CAPS_pubpropertySource

(Inherited from Exception.)

System_CAPS_pubpropertyStackTrace

(Inherited from Exception.)

System_CAPS_pubpropertyTargetSite

(Inherited from Exception.)

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_pubmethodGetBaseException()

(Inherited from Exception.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetObjectData(SerializationInfo^, StreamingContext)

(Inherited from Exception.)

System_CAPS_pubmethodGetType()

(Inherited from Exception.)

System_CAPS_pubmethodToString()

(Inherited from Exception.)

To programmatically add or remove an object from the data cache, use the StartCaching and StopCaching methods of a host item. Examples of host items include Microsoft.Office.Tools.Word::Document, Microsoft.Office.Tools.Excel::Workbook, and Microsoft.Office.Tools.Excel::Worksheet.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: