Duration Duration Duration Duration Struct

Definição

Representa a duração do tempo em que um Timeline está ativo.Represents the duration of time that a Timeline is active.

public value class Duration
[System.Security.SecurityCritical]
public struct Duration
type Duration = struct
Public Structure Duration
Herança
Atributos

Comentários

Essa estrutura representa a projeção .NET da estrutura Windows Runtime (WinRT Duration ).This struct represents the .NET projection of the Windows Runtime (WinRT) Duration struct. Para obter mais informações, consulte duração na referência da API UWP.For more information, see Duration in the UWP API reference.

Construtores

Duration(TimeSpan) Duration(TimeSpan) Duration(TimeSpan) Duration(TimeSpan)

Inicializa uma nova instância do struct Duration com o valor TimeSpan especificado.Initializes a new instance of the Duration struct with the specified TimeSpan value.

Propriedades

Automatic Automatic Automatic Automatic

Obtém um valor Duration que é determinado automaticamente.Gets a Duration value that is automatically determined.

Forever Forever Forever Forever

Obtém um valor Duration que representa um intervalo infinito.Gets a Duration value that represents an infinite interval.

HasTimeSpan HasTimeSpan HasTimeSpan HasTimeSpan

Obtém um valor que indica se esse Duration representa um valor TimeSpan.Gets a value that indicates if this Duration represents a TimeSpan value.

TimeSpan TimeSpan TimeSpan TimeSpan

Obtém o valor TimeSpan que esse Duration representa.Gets the TimeSpan value that this Duration represents.

Métodos

Add(Duration) Add(Duration) Add(Duration) Add(Duration)

Adiciona o valor da Duration especificada a esta Duration.Adds the value of the specified Duration to this Duration.

Compare(Duration, Duration) Compare(Duration, Duration) Compare(Duration, Duration) Compare(Duration, Duration)

Compara um valor Duration com outro.Compares one Duration value to another.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determina se um objeto especificado é igual a um Duration.Determines whether a specified object is equal to a Duration.

Equals(Duration) Equals(Duration) Equals(Duration) Equals(Duration)

Determina se uma Duration especificada é igual a esta Duration.Determines whether a specified Duration is equal to this Duration.

Equals(Duration, Duration) Equals(Duration, Duration) Equals(Duration, Duration) Equals(Duration, Duration)

Determina se dois valores de Duration são iguais.Determines whether two Duration values are equal.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Obtém um código hash para este objeto.Gets a hash code for this object.

Subtract(Duration) Subtract(Duration) Subtract(Duration) Subtract(Duration)

Subtrai a Duration desta Duration.Subtracts the specified Duration from this Duration.

ToString() ToString() ToString() ToString()

Converte uma Duration em uma representação de String.Converts a Duration to a String representation.

Operadores

Addition(Duration, Duration) Addition(Duration, Duration) Addition(Duration, Duration) Addition(Duration, Duration)

Adiciona dois valores de Duration juntos.Adds two Duration values together.

Equality(Duration, Duration) Equality(Duration, Duration) Equality(Duration, Duration) Equality(Duration, Duration)

Determina se dois casos de Duration são iguais.Determines whether two Duration cases are equal.

GreaterThan(Duration, Duration) GreaterThan(Duration, Duration) GreaterThan(Duration, Duration) GreaterThan(Duration, Duration)

Determina se uma Duration é maior que outra.Determines if one Duration is greater than another.

GreaterThanOrEqual(Duration, Duration) GreaterThanOrEqual(Duration, Duration) GreaterThanOrEqual(Duration, Duration) GreaterThanOrEqual(Duration, Duration)

Determina se uma Duration é maior ou igual a outra.Determines whether a Duration is greater than or equal to another.

Implicit(TimeSpan to Duration) Implicit(TimeSpan to Duration) Implicit(TimeSpan to Duration) Implicit(TimeSpan to Duration)

Cria implicitamente um Duration de determinado TimeSpan.Implicitly creates a Duration from a given TimeSpan.

Inequality(Duration, Duration) Inequality(Duration, Duration) Inequality(Duration, Duration) Inequality(Duration, Duration)

Determina se dois casos de Duration não são iguais.Determines if two Duration cases are not equal.

LessThan(Duration, Duration) LessThan(Duration, Duration) LessThan(Duration, Duration) LessThan(Duration, Duration)

Determina se uma Duration é menor que o valor de outra instância.Determines if a Duration is less than the value of another instance.

LessThanOrEqual(Duration, Duration) LessThanOrEqual(Duration, Duration) LessThanOrEqual(Duration, Duration) LessThanOrEqual(Duration, Duration)

Determina se uma Duration é menor ou igual a outra.Determines if a Duration is less than or equal to another.

Subtraction(Duration, Duration) Subtraction(Duration, Duration) Subtraction(Duration, Duration) Subtraction(Duration, Duration)

Subtrai o valor de uma Duration de outra.Subtracts the value of one Duration from another.

UnaryPlus(Duration) UnaryPlus(Duration) UnaryPlus(Duration) UnaryPlus(Duration)

Retorna o Duration especificado.Returns the specified Duration.

Aplica-se a

Veja também