PersistenceModeAttribute 클래스

정의

디자인 타임에 ASP.NET 서버 컨트롤 속성이나 이벤트를 ASP.NET 페이지에 유지하는 방법을 지정하는 메타데이터 특성을 정의합니다. 이 클래스는 상속될 수 없습니다.

public ref class PersistenceModeAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.All)]
public sealed class PersistenceModeAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.All)>]
type PersistenceModeAttribute = class
    inherit Attribute
Public NotInheritable Class PersistenceModeAttribute
Inherits Attribute
상속
PersistenceModeAttribute
특성

예제

[PersistenceMode(PersistenceMode.InnerProperty),
TemplateContainer(typeof(TemplateItem))]
public ITemplate MessageTemplate {
   get {
      return _messageTemplate;
   }
   set {
      _messageTemplate = value;
   }
}

<PersistenceMode(PersistenceMode.InnerProperty), TemplateContainer(GetType(TemplateItem))> Public Property MessageTemplate() As ITemplate
   Get
      Return _messageTemplate
   End Get
   Set(ByVal Value As ITemplate)
      _messageTemplate = Value
   End Set
End Property

설명

특성을 사용 하는 방법에 대 한 자세한 내용은 참조 하세요. 특성합니다.

참고

Visual Studio에서 웹 페이지 디자이너를 지원 하지 않습니다는 ResetPropertyName 선택적 속성이 지 속성에 대 한 Windows Forms 컨트롤에서 노출 되는 메서드. 서버 컨트롤에서 제공 하는 메서드를 사용 하 여 serialize 되는 ControlPersister 클래스입니다. 이러한 메서드의 구현와 같은 메타 데이터 특성에 의해 좌우 됩니다 DefaultValueAttribute, PersistenceModeAttribute, 및 DesignerSerializationVisibilityAttribute합니다.

생성자

PersistenceModeAttribute(PersistenceMode)

PersistenceModeAttribute 클래스의 새 인스턴스를 초기화합니다.

필드

Attribute

속성이나 이벤트가 서버 컨트롤의 여는 태그에서 특성으로 유지되도록 지정합니다. 이 필드는 읽기 전용입니다.

Default

PersistenceModeAttribute 클래스의 기본 형식을 지정합니다. 기본값은 PersistenceMode.Attribute입니다. 이 필드는 읽기 전용입니다.

EncodedInnerDefaultProperty

속성이 HTML로 인코딩되고 ASP.NET 서버 컨트롤의 유일한 내부 내용으로 유지되도록 지정합니다. 이 필드는 읽기 전용입니다.

InnerDefaultProperty

속성이 ASP.NET 서버 컨트롤의 유일한 내부 내용으로 유지되도록 지정합니다. 이 필드는 읽기 전용입니다.

InnerProperty

속성이 서버 컨트롤의 여는 태그와 닫는 태그 사이의 중첩된 태그로 유지되도록 지정합니다. 이 필드는 읽기 전용입니다.

속성

Mode

PersistenceMode 열거형의 현재 값을 가져옵니다.

TypeId

파생 클래스에서 구현된 경우 이 Attribute에 대한 고유 식별자를 가져옵니다.

(다음에서 상속됨 Attribute)

메서드

Equals(Object)

PersistenceModeAttribute 개체를 다른 개체와 비교합니다.

GetHashCode()

PersistenceModeAttribute 특성의 해시 값을 제공합니다.

GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
IsDefaultAttribute()

PersistenceModeAttribute 개체의 형식이 기본 형식인지 여부를 나타냅니다.

Match(Object)

파생 클래스에서 재정의된 경우 이 인스턴스가 지정된 개체와 같은지 여부를 나타내는 값을 반환합니다.

(다음에서 상속됨 Attribute)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

명시적 인터페이스 구현

_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

이름 집합을 해당하는 디스패치 식별자 집합에 매핑합니다.

(다음에서 상속됨 Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

인터페이스의 형식 정보를 가져오는 데 사용할 수 있는 개체의 형식 정보를 검색합니다.

(다음에서 상속됨 Attribute)
_Attribute.GetTypeInfoCount(UInt32)

개체에서 제공하는 형식 정보 인터페이스의 수를 검색합니다(0 또는 1).

(다음에서 상속됨 Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

개체에서 노출하는 메서드와 속성에 대한 액세스를 제공합니다.

(다음에서 상속됨 Attribute)

적용 대상

추가 정보