SPSiteSubscriptionSettings.TryGetProperty method (String, Boolean)
Retorna o valor da propriedade que está associado com a chave especificada e atribui o valor a uma variável do tipo Boolean.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaração
Public Function TryGetProperty ( _
key As String, _
<OutAttribute> ByRef value As Boolean _
) As Boolean
'Uso
Dim instance As SPSiteSubscriptionSettings
Dim key As String
Dim value As Boolean
Dim returnValue As Boolean
returnValue = instance.TryGetProperty(key, _
value)
public bool TryGetProperty(
string key,
out bool value
)
Parâmetros
key
Type: System.StringUma seqüência de caracteres que contém a chave de propriedade correspondente a um valor.
value
Type: System.BooleanUma referência a uma variável receba um valor de Boolean . Se key não for encontrado, o value é inicializada para default(bool).
Valor retornado
Type: System.Boolean
true se a chave especificada for encontrada; Caso contrário, false.
Exceptions
Exception | Condition |
---|---|
InvalidCastException | O tipo armazenado e o tipo solicitado não são compatíveis. |
Ver também
Referência
SPSiteSubscriptionSettings class
SPSiteSubscriptionSettings members