Show / Hide Table of Contents

Interface IResource<TSelf, TResource>

The stateful model interface.

Inherited Members
System.IDisposable.Dispose()
Namespace: Microsoft.Graph.StatefulClient
Assembly: Microsoft.Graph.StatefulClient.dll
Syntax
public interface IResource<out TSelf, TResource> : IDisposable where TSelf : IResource<TSelf, TResource> where TResource : Entity
Type Parameters
Name Description
TSelf

The self type of the resource.

TResource

The containing Resource type.

Properties

View Source

Client

Gets the client.

Declaration
IStatefulClient Client { get; }
Property Value
Type Description
IStatefulClient
View Source

GraphClient

Gets the graph client.

Declaration
IGraphClient GraphClient { get; }
Property Value
Type Description
Microsoft.Graph.Core.Transport.IGraphClient
View Source

GraphLogger

Gets the graph logger.

Declaration
IGraphLogger GraphLogger { get; }
Property Value
Type Description
Microsoft.Graph.Core.Telemetry.IGraphLogger
View Source

Id

Gets the identifier.

Declaration
string Id { get; }
Property Value
Type Description
System.String
View Source

Resource

Gets the resource.

Declaration
TResource Resource { get; }
Property Value
Type Description
TResource

Methods

View Source

DeleteAsync(CancellationToken)

Deletes this instance asynchronously.

Declaration
Task DeleteAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken

The System.Threading.CancellationToken for the request.

Returns
Type Description
System.Threading.Tasks.Task

The System.Threading.Tasks.Task to await.

View Source

UpdateResource(TResource)

Updates the model with specified resource.

Declaration
void UpdateResource(TResource resource)
Parameters
Type Name Description
TResource resource

The resource to update

Events

View Source

OnUpdated

Event fired when this resource has been updated.

Declaration
event ResourceEventHandler<TSelf, TResource> OnUpdated
Event Type
Type Description
ResourceEventHandler<TSelf, TResource>

Extension Methods

GraphModelExtensions.SetInAdditionalData(Object, String, Object)

See Also

System.IDisposable
  • View Source
Back to top Generated by DocFX