设置属性的当前值。
命名空间: Microsoft.Data.Schema.Build
程序集: Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)
语法
声明
Protected Overridable Function SetValue ( _
propertyName As String, _
value As Object, _
source As DatabaseTaskHost..::..PropertySource, _
<OutAttribute> ByRef defaultUsed As Boolean _
) As Boolean
protected virtual bool SetValue(
string propertyName,
Object value,
DatabaseTaskHost..::..PropertySource source,
out bool defaultUsed
)
protected:
virtual bool SetValue(
String^ propertyName,
Object^ value,
DatabaseTaskHost..::..PropertySource source,
[OutAttribute] bool% defaultUsed
)
abstract SetValue :
propertyName:string *
value:Object *
source:DatabaseTaskHost..::..PropertySource *
defaultUsed:bool byref -> bool
override SetValue :
propertyName:string *
value:Object *
source:DatabaseTaskHost..::..PropertySource *
defaultUsed:bool byref -> bool
protected function SetValue(
propertyName : String,
value : Object,
source : DatabaseTaskHost..::..PropertySource,
defaultUsed : boolean
) : boolean
参数
- propertyName
类型:System.String
属性名称。
- value
类型:System.Object
对象值。
- source
类型:Microsoft.Data.Schema.Build.DatabaseTaskHost.PropertySource
属性源枚举值。
- defaultUsed
类型:System.Boolean%
指定是否对此属性使用了默认值。
返回值
类型:System.Boolean
如果设置成功,则返回 true。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。