CannotFindMemberException Class (2007 System)
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.v9.0 (in Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0.dll)
Syntax
'Declaration
<SerializableAttribute> _
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public NotInheritable Class CannotFindMemberException _
Inherits RuntimeException
'Usage
Dim instance As CannotFindMemberException
[SerializableAttribute]
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public sealed class CannotFindMemberException : RuntimeException
[SerializableAttribute]
[PermissionSetAttribute(SecurityAction::Demand, Name = L"FullTrust")]
public ref class CannotFindMemberException sealed : public RuntimeException
public final class CannotFindMemberException extends RuntimeException
Remarks
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.
Inheritance Hierarchy
System.Object
System.Exception
Microsoft.VisualStudio.Tools.Applications.Runtime.RuntimeException
Microsoft.VisualStudio.Tools.Applications.Runtime.CannotFindMemberException
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
CannotFindMemberException Members
Microsoft.VisualStudio.Tools.Applications.Runtime Namespace