Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ProxyFactory.GetProxy Method

Creates a new proxy.

[Visual Basic]
Public Overrides Sub GetProxy( _
   ByVal id As Object, _
   ByVal session As ISessionImplementor _
) _
    Implements IProxyFactory.GetProxy
[C#]
public override INHibernateProxy GetProxy(
   object id,
   ISessionImplementor session
);

Parameters

id
The id value for the proxy to be generated.
session
The session to which the generated proxy will be associated.

Return Value

The generated proxy.

Implements

IProxyFactory.GetProxy

Exceptions

Exception Type Condition
HibernateException Indicates problems generating requested proxy.

See Also

ProxyFactory Class | Spring.Data.NHibernate.Bytecode Namespace