22.5. .NET Binding for the C++ Messaging API Class: Duration


Table 22.5. .NET Binding for the C++ Messaging API Class: Duration
.NET Binding Class: Duration
Language Syntax
C++ class Duration
.NET public ref class Duration
Constructor
C++ explicit Duration(uint64_t milliseconds);
.NET public Duration(ulong mS);
Copy constructor
C++ not applicable
.NET public Duration(Duration rhs);
Destructor
C++ default
.NET default
Finalizer
C++ not applicable
.NET default
Property: Milliseconds
C++ uint64_t getMilliseconds() const;
.NET public ulong Milliseconds { get; }
Operator: *
C++ Duration operator*(const Duration& duration, uint64_t multiplier);
.NET public static Duration operator *(Duration dur, ulong multiplier);
.NET public static Duration Multiply(Duration dur, ulong multiplier);
C++ Duration operator*(uint64_t multiplier, const Duration& duration);
.NET public static Duration operator *(ulong multiplier, Duration dur);
.NET public static Duration Multiply(ulong multiplier, Duration dur);
Constants
C++ static const Duration FOREVER;
C++ static const Duration IMMEDIATE;
C++ static const Duration SECOND;
C++ static const Duration MINUTE;
.NET public sealed class DurationConstants
.NET public static Duration FORVER;
.NET public static Duration IMMEDIATE;
.NET public static Duration MINUTE;
.NET public static Duration SECOND;
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.