Represents a Hypertable client, provides methods to handle Hypertable namespaces.

Namespace: Hypertable
Assembly: ht4n (in ht4n.dll) Version: 0.9.8.11 (0.9.8.11)

Syntax

         
 C#  Visual Basic  Visual C++ 
public interface IClient : IDisposable
Public Interface IClient _
	Inherits IDisposable
public interface class IClient : IDisposable

Members

         
 All Members  Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
Context
Gets the context.
CreateNamespace(String)
Creates a new namespace.
CreateNamespace(String, CreateDispositions)
Creates a new namespace.
CreateNamespace(String, INamespace)
Creates a new namespace relative to an existing namespace.
CreateNamespace(String, INamespace, CreateDispositions)
Creates a new namespace relative to an existing namespace.
Dispose()()()()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
DropNamespace(String)
Drops an existing namespace.
DropNamespace(String, DropDispositions)
Drops an existing namespace.
DropNamespace(String, INamespace)
Drops an existing namespace relative to an existing namespace.
DropNamespace(String, INamespace, DropDispositions)
Drops an existing namespace relative to an existing namespace.
IsDisposed
Gets a value indicating whether the object has been disposed.
NamespaceExists(String)
Checks if a namespace exists.
NamespaceExists(String, INamespace)
Checks if a namespace exists relative to an existing namespace.
OpenNamespace(String)
Opens an existig namespace.
OpenNamespace(String, INamespace)
Opens an existig namespace relative to an existing namespace.
OpenNamespace(String, OpenDispositions)
Opens or create a namespace.
OpenNamespace(String, INamespace, OpenDispositions)
Opens or creates a namespace relative to an existing namespace.

Examples

The following example shows how to create and use the Client class.
CopyC#
using( var ctx = Context.Create("Provider=Hyper; Uri=localhost") ) {
   using( var client = ctx.CreateClient() ) {
      using( var ns = client.OpenNamespace("test", OpenDispositions.OpenAlways) ) { // here "test" or "/test" is equivalent
         // use namespace
      }
      client.DropNamespace( "test", DropDispositions.Complete );
   }
}
The following example shows how to open the root namespace.
CopyC#
using( var ctx = Context.Create("Provider=Hyper; Uri=localhost") ) {
   using( var client = ctx.CreateClient() ) {
      using( var ns = client.OpenNamespace("/") ) {
         // use namespace
      }
   }
}

See Also