共用方式為


CannotFindMemberException Class

Definition

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.

public ref class CannotFindMemberException sealed : Microsoft::VisualStudio::Tools::Applications::Runtime::RuntimeException
[System.Serializable]
public sealed class CannotFindMemberException : Microsoft.VisualStudio.Tools.Applications.Runtime.RuntimeException
[<System.Serializable>]
type CannotFindMemberException = class
    inherit RuntimeException
Public NotInheritable Class CannotFindMemberException
Inherits RuntimeException
Inheritance
CannotFindMemberException
Attributes

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.

Constructors

CannotFindMemberException()
CannotFindMemberException(String, Exception)
CannotFindMemberException(String, Type)
CannotFindMemberException(String)

Applies to