C# Class Castle.ManagementExtensions.ManagedObjectName

Inheritance: ISerializable
Show file Open project: nats/castle-1.0.3-mono Class Usage Examples

Protected Properties

Property Type Description
allProperties bool
domain String
literalProperties String
properties System.Collections.Hashtable

Public Methods

Method Description
Equals ( object obj ) : bool
GetHashCode ( ) : int
GetObjectData ( SerializationInfo info, StreamingContext context ) : void
ManagedObjectName ( SerializationInfo info, StreamingContext context ) : System

Serialization constructor.

ManagedObjectName ( String name ) : System

Creates a ManagedObjectName using a name pattern like "domain:key=value,key2=value2"

ManagedObjectName ( String domain, Hashtable properties ) : System

Creates a ManagedObjectName with specified domain and properties.

ManagedObjectName ( String domain, String properties ) : System

Creates a ManagedObjectName with specified domain and properties.

ToString ( ) : string
this ( String key ) : String

Protected Methods

Method Description
Setup ( String name ) : void

Parses the full name extracting the domain and properties.

SetupDomain ( String domain ) : void

Sets up the domain. Can be empty but can't be null.

SetupProperties ( Hashtable properties ) : void

Validates a properties Hashtable.

SetupProperties ( String properties ) : void

Parses and validate a properties list string like "key=value,key2=value2" and so on.

Method Details

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetObjectData() public method

public GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
return void

ManagedObjectName() public method

Serialization constructor.
public ManagedObjectName ( SerializationInfo info, StreamingContext context ) : System
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
return System

ManagedObjectName() public method

Creates a ManagedObjectName using a name pattern like "domain:key=value,key2=value2"
public ManagedObjectName ( String name ) : System
name String Complete name
return System

ManagedObjectName() public method

Creates a ManagedObjectName with specified domain and properties.
public ManagedObjectName ( String domain, Hashtable properties ) : System
domain String Domain name
properties System.Collections.Hashtable Property list.
return System

ManagedObjectName() public method

Creates a ManagedObjectName with specified domain and properties.
public ManagedObjectName ( String domain, String properties ) : System
domain String Domain name
properties String Property list.
return System

Setup() protected method

Parses the full name extracting the domain and properties.
protected Setup ( String name ) : void
name String Full name.
return void

SetupDomain() protected method

Sets up the domain. Can be empty but can't be null.
protected SetupDomain ( String domain ) : void
domain String
return void

SetupProperties() protected method

Validates a properties Hashtable.
protected SetupProperties ( Hashtable properties ) : void
properties System.Collections.Hashtable Property list.
return void

SetupProperties() protected method

Parses and validate a properties list string like "key=value,key2=value2" and so on.
protected SetupProperties ( String properties ) : void
properties String Property list.
return void

ToString() public method

public ToString ( ) : string
return string

this() public method

public this ( String key ) : String
key String
return String

Property Details

allProperties protected property

protected bool allProperties
return bool

domain protected property

protected String domain
return String

literalProperties protected property

protected String literalProperties
return String

properties protected property

protected Hashtable,System.Collections properties
return System.Collections.Hashtable