UseCase Class

A use case of a use case diagram: something the system does for its actors, drawn as an ellipse or a rectangle.

public sealed class UseCase : UseCaseDiagramElement
Inheritance
UseCaseDiagramElement UseCase

Constructors

NameDescription
UseCase(string, DiagramText?)Initializes a new instance of the UseCase class.

UseCase(string, DiagramText?)

UseCase.cs

Initializes a new instance of the UseCase class.

public UseCase(string id, DiagramText? label = null)

Parameters

id string
The identifier, which is shown when there is no label.
label DiagramText?
The text shown, or null to show the identifier.

Properties

NameDescription
IsBusinessGets or sets a value that indicates whether the use case is a business use case, drawn with a slash. A rectangle cannot be one.
ShapeGets or sets the shape.
StereotypeGets or sets the stereotype, shown between guillemets above the text, or null for none.

IsBusiness

UseCase.cs

Gets or sets a value that indicates whether the use case is a business use case, drawn with a slash. A rectangle cannot be one.

public bool IsBusiness { get; set; }

Property value

bool

Gets or sets the shape.

public UseCaseShape Shape { get; set; }

Property value

UseCaseShape

Stereotype

UseCase.cs

Gets or sets the stereotype, shown between guillemets above the text, or null for none.

public string? Stereotype { get; set; }

Property value

string?