## TimeSpan::CompareTo(const SharedPtr\<Object\>\&) const method


Geçerli ve belirtilen nesneleri karşılaştırır.

```cpp
int System::TimeSpan::CompareTo(const SharedPtr<Object> &obj) const
```


| Parametre | Tür | Açıklama |
| --- | --- | --- |
| obj | const SharedPtr\<Object\>\& | Mevcut nesneyle karşılaştırılacak [TimeSpan](../) nesnesi |

### ReturnValue

-1 if the current object represents the interval that is shorter than **value**; 0 if the current object represents the interval that is equal to **value**; 1 if the current object represents the interval that is longer than **value**

## Ayrıca Bakınız

* Typedef [SharedPtr](../../sharedptr/)
* Class [Object](../../object/)
* Class [TimeSpan](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## TimeSpan::CompareTo(TimeSpan) const method


Geçerli ve belirtilen nesneleri karşılaştırır.

```cpp
int System::TimeSpan::CompareTo(TimeSpan value) const
```


| Parametre | Tür | Açıklama |
| --- | --- | --- |
| value | TimeSpan | Mevcut nesneyle karşılaştırılacak [TimeSpan](../) nesnesi |

### ReturnValue

-1 if the current object represents the interval that is shorter than **value**; 0 if the current object represents the interval that is equal to **value**; 1 if the current object represents the interval that is longer than **value**

## Ayrıca Bakınız

* Class [TimeSpan](../)
* Class [TimeSpan](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
