共用方式為


VariableClass.ReadOnly 屬性

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Gets or sets a value that indicates whether the variable class is read-only and cannot have its value modified.

命名空間:  Microsoft.SqlServer.Dts.Runtime.Wrapper
組件:  Microsoft.SqlServer.DTSRuntimeWrap (在 Microsoft.SqlServer.DTSRuntimeWrap.dll 中)

語法

'宣告
Public Overridable Property ReadOnly As Boolean 
    Get 
    Set
'用途
Dim instance As VariableClass 
Dim value As Boolean 

value = instance.ReadOnly

instance.ReadOnly = value
public virtual bool ReadOnly { get; set; }
public:
virtual property bool ReadOnly {
    bool get ();
    void set (bool value);
}
abstract ReadOnly : bool with get, set 
override ReadOnly : bool with get, set
function get ReadOnly () : boolean 
function set ReadOnly (value : boolean)

屬性值

型別:System.Boolean
true if the variable class is read-only; otherwise, false.

實作

IDTSVariable100.ReadOnly

請參閱

參考

VariableClass 類別

Microsoft.SqlServer.Dts.Runtime.Wrapper 命名空間