SharedAccessBlobPolicies.TryGetValue Method (String, SharedAccessBlobPolicy) (Microsoft.WindowsAzure.Storage.Blob)
From Microsoft Windows Azure Storage Blob
C#
C++
F#
VB
SharedAccessBlobPolicies.::..TryGetValue Method (String, SharedAccessBlobPolicy)(String^, SharedAccessBlobPolicy^%)(String, SharedAccessBlobPolicy)(String, SharedAccessBlobPolicy)
Gets the SharedAccessBlobPolicy item associated with the specified key.
Namespace:
Microsoft.WindowsAzure.Storage.Blob
Assembly:
Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
C++
public:
virtual bool TryGetValue(
String^ key,
[OutAttribute] SharedAccessBlobPolicy^% value
) sealed
abstract TryGetValue :
key:string *
value:SharedAccessBlobPolicy byref -> bool
override TryGetValue :
key:string *
value:SharedAccessBlobPolicy byref -> bool
Public Function TryGetValue (
key As String,
<OutAttribute> ByRef value As SharedAccessBlobPolicy
) As Boolean
Parameters
- key
-
Type:
System.StringSystem::String^System.StringSystem.String
A string containing the key of the value to get.
Return Value
Type:
System.BooleanSystem::BooleanSystem.BooleanSystem.BooleanThe SharedAccessBlobPolicy item associated with the specified key, if the key is found; otherwise, the default value for the SharedAccessBlobPolicy type.
Return to top
Gets the SharedAccessBlobPolicy item associated with the specified key.
Syntax
C++
public: virtual bool TryGetValue( String^ key, [OutAttribute] SharedAccessBlobPolicy^% value ) sealed
abstract TryGetValue : key:string * value:SharedAccessBlobPolicy byref -> bool override TryGetValue : key:string * value:SharedAccessBlobPolicy byref -> bool
Public Function TryGetValue ( key As String, <OutAttribute> ByRef value As SharedAccessBlobPolicy ) As Boolean
Parameters
- key
-
Type:
System.StringSystem::String^System.StringSystem.String
A string containing the key of the value to get.
Return Value
Type: System.BooleanSystem::BooleanSystem.BooleanSystem.BooleanThe SharedAccessBlobPolicy item associated with the specified key, if the key is found; otherwise, the default value for the SharedAccessBlobPolicy type.