PropertyCollection.ISfcPropertySet.TryGetPropertyValue 方法 (String, Object%)
Tries to get the property value specified by the name parameter and type specified by the property parameter.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Private Function TryGetPropertyValue ( _
name As String, _
<OutAttribute> ByRef value As Object _
) As Boolean Implements ISfcPropertySet.TryGetPropertyValue
用法
Dim instance As PropertyCollection
Dim name As String
Dim value As Object
Dim returnValue As Boolean
returnValue = CType(instance, ISfcPropertySet).TryGetPropertyValue(name, _
value)
bool ISfcPropertySet.TryGetPropertyValue(
string name,
out Object value
)
private:
virtual bool TryGetPropertyValue(
String^ name,
[OutAttribute] Object^% value
) sealed = ISfcPropertySet::TryGetPropertyValue
private abstract TryGetPropertyValue :
name:string *
value:Object byref -> bool
private override TryGetPropertyValue :
name:string *
value:Object byref -> bool
JScript 支持使用显式接口实现,但不支持声明新显式接口实现。
参数
- name
类型:System.String
A string value that specifies the name of the property.
- value
类型:System.Object%
An Object.
返回值
类型:System.Boolean
A Boolean value, True if the collection contains the property value, otherwise False.
实现
ISfcPropertySet.TryGetPropertyValue(String, Object%)