EventField.TypeModifier Property
Gets or sets the optional Microsoft SQL Server field attributes for an event field.
네임스페이스: Microsoft.SqlServer.Management.Nmo
어셈블리: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
구문
‘선언
Public Property TypeModifier As String
public string TypeModifier { get; set; }
public:
property String^ TypeModifier {
String^ get ();
void set (String^ value);
}
/** @property */
public String get_TypeModifier ()
/** @property */
public void set_TypeModifier (String value)
public function get TypeModifier () : String
public function set TypeModifier (value : String)
속성 값
A String, between 1 and 255 characters in length, that specifies the type modifiers for the event field.
주의
Field type modifiers are equivalent to table column modifiers, such as NOT NULL or DEFAULT constant_expression. The value must conform to the Transact-SQL syntax conventions.
You cannot specify an event data field as an Identity column in SQL Server. Notification Services already uses the Identity property to specify a system-generated EventId field.
For more information about possible values, see CREATE TABLE(Transact-SQL).
If you update a field type modifier, updating the application deletes and re-creates the event class to which it corresponds. This includes dropping and re-creating the SQL Server tables and indexes used by this event class. Any data existing in the original event class tables is permanently deleted.
예
The following examples show how to define an event field that does not allow null values:
// Add an orgin field to the end of the field collection
EventField eventOrgin =
new EventField(flightEvents, "LeavingFrom");
eventOrgin.Type = "nvarchar(6)";
eventOrgin.TypeModifier = "not null";
flightEvents.EventFields.Add(eventOrgin);
' Add an orgin field to the end of the field collection.
Dim eventOrgin As EventField = _
New EventField(flightEvents, "LeavingFrom")
eventOrgin.Type = "nvarchar(6)"
eventOrgin.TypeModifier = "not null"
flightEvents.EventFields.Add(eventOrgin)
스레드 보안
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
플랫폼
개발 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
대상 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
참고 항목
참조
EventField Class
EventField Members
Microsoft.SqlServer.Management.Nmo Namespace
관련 자료
핵심 이벤트 클래스 속성 정의
FieldTypeMods Element for EventClass/Schema/Field (ADF)