Spring.Objects.Factory.Support.ObjectDefinitionBuilder.SetDestroyMethodName C# (CSharp) Method

SetDestroyMethodName() public method

Sets the name of the destroy method for this definition.
public SetDestroyMethodName ( string methodName ) : ObjectDefinitionBuilder
methodName string Name of the method.
return ObjectDefinitionBuilder
        public ObjectDefinitionBuilder SetDestroyMethodName(string methodName)
        {
            objectDefinition.DestroyMethodName = methodName;
            return this;
        }