IReliableObjectStateManager.GetOrAddAsync Method (Uri)

Namespace: Microsoft.ServiceFabric.Data
Assembly: Microsoft.ServiceFabric.Data (in Microsoft.ServiceFabric.Data.dll)

Usage

'Usage
Dim instance As IReliableObjectStateManager
Dim name As Uri
Dim returnValue As Task(Of T)

returnValue = instance.GetOrAddAsync(name)

Syntax

'Declaration
Function GetOrAddAsync(Of T As IReliableObject) ( _
    name As Uri _
) As Task(Of T)
Task<T> GetOrAddAsync<T> (
    Uri name
) where T : IReliableObject
generic<typename T> where T : IReliableObject
Task<T>^ GetOrAddAsync (
    Uri^ name
)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

IReliableObjectStateManager Interface
IReliableObjectStateManager Members
Microsoft.ServiceFabric.Data Namespace