CachedAttribute 클래스(2007 시스템)
업데이트: 2007년 11월
문서의 데이터 캐시에 지정된 데이터 개체를 추가하도록 Visual Studio Tools for Office 런타임에 지시합니다.
네임스페이스: Microsoft.VisualStudio.Tools.Applications.Runtime
어셈블리: Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0(Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0.dll)
구문
<AttributeUsageAttribute(AttributeTargets.Property Or AttributeTargets.Field)> _
Public NotInheritable Class CachedAttribute _
Inherits Attribute
Dim instance As CachedAttribute
[AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field)]
public sealed class CachedAttribute : Attribute
설명
이 특성은 Visual Studio Tools for Office를 사용하여 만든 문서 수준 사용자 지정에서만 사용할 수 있습니다.
문서의 데이터 캐시에 개체를 추가하려면 개체에 XmlSerializer의 요구 사항을 만족하는 public 형식이 있어야 합니다. 데이터 캐시에 개체를 추가하는 것에 대한 자세한 내용은 데이터 캐싱을 참조하십시오. 특성 사용에 대한 자세한 내용은 특성을 사용하여 메타데이터 확장을 참조하십시오.
데이터 개체의 캐싱 동작을 좀더 세밀하게 제어하기 위해 개체 형식에서 ICachedType 인터페이스를 구현할 수 있습니다.
상속 계층 구조
System.Object
System.Attribute
Microsoft.VisualStudio.Tools.Applications.Runtime.CachedAttribute
스레드로부터의 안전성
이 형식의 모든 공용 static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.
참고 항목
참조
Microsoft.VisualStudio.Tools.Applications.Runtime 네임스페이스