Click here to Skip to main content
15,879,474 members
Articles / Web Development

Service Based Membership Providers for ASP.NET

Rate me:
Please Sign up or sign in to vote.
4.93/5 (45 votes)
4 May 2014CPOL29 min read 131.3K   8.2K   173  
Service based, multi-application ASP.NET custom membership, role and profile providers with a hierarchical role system.
<html xmlns:MSHelp="http://msdn.microsoft.com/mshelp" xmlns:mshelp="http://msdn.microsoft.com/mshelp"><head><link rel="SHORTCUT ICON" href="./../icons/favicon.ico" /><style type="text/css">.OH_CodeSnippetContainerTabLeftActive, .OH_CodeSnippetContainerTabLeft,.OH_CodeSnippetContainerTabLeftDisabled { backgroundImageName: tabLeftBG.gif; }.OH_CodeSnippetContainerTabRightActive, .OH_CodeSnippetContainerTabRight,.OH_CodeSnippetContainerTabRightDisabled { backgroundImageName: tabRightBG.gif; }.OH_footer { backgroundImageName: footer_slice.gif; background-position: top; background-repeat: repeat-x; }</style><link rel="stylesheet" type="text/css" href="./../styles/branding.css" /><link rel="stylesheet" type="text/css" href="./../styles/branding-en-US.css" /><style type="text/css">
			body
			{
			border-left:5px solid #e6e6e6;
			overflow-x:scroll;
			overflow-y:scroll;
			}
		</style><script src="./../scripts/branding.js" type="text/javascript"><!----></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>UsersInRoleServiceProxy.DeleteEntities Method </title><meta name="Language" content="en-us" /><meta name="System.Keywords" content="DeleteEntities method" /><meta name="System.Keywords" content="UsersInRoleServiceProxy.DeleteEntities method" /><meta name="Microsoft.Help.F1" content="CryptoGateway.RDB.Data.AspNetMember.UsersInRoleServiceProxy.DeleteEntities" /><meta name="Microsoft.Help.Id" content="M:CryptoGateway.RDB.Data.AspNetMember.UsersInRoleServiceProxy.DeleteEntities(CryptoGateway.RDB.Data.AspNetMember.CallContext,CryptoGateway.RDB.Data.AspNetMember.UsersInRoleSet,CryptoGateway.RDB.Data.AspNetMember.UsersInRole[])" /><meta name="Description" content="Delete a set of entities from the entity set, together with all their dependents, recursively." /><meta name="Microsoft.Help.ContentType" content="Reference" /><meta name="BrandingAware" content="'true'" /><meta name="container" content="CryptoGateway.RDB.Data.AspNetMember" /><meta name="file" content="4740d344-e3af-1749-118a-895ff8dc7b3c" /><meta name="guid" content="4740d344-e3af-1749-118a-895ff8dc7b3c" /><link type="text/css" rel="stylesheet" href="ms-help://Hx/HxRuntime/HxLink.css" /><meta name="SelfBranded" content="true" /></head><body onload="onLoad()" class="primary-mtps-offline-document"><div class="OH_outerDiv"><div class="OH_outerContent"><table class="TitleTable"><tr><td class="OH_tdTitleColumn">UsersInRoleServiceProxy<span id="ID0EBBABAAA"> </span><script type="text/javascript">
					addToLanSpecTextIdSet("ID0EBBABAAA?vb=.|cpp=::|cs=.|fs=.|nu=.");
				</script>DeleteEntities Method </td><td class="OH_tdRunningTitleColumn">Service Proxy API for Membership data sources</td></tr></table><div id="mainSection"><div id="mainBody"><span class="introStyle"></span><p style="color: #dc143c; font-size: 8.5pt; font-weight: bold;">[This is preliminary documentation and is subject to change.]</p><div class="summary">
             Delete a set of entities from the entity set, together with all their dependents, recursively. 
            </div><p></p><b>Namespace:</b> <a href="9b9992ae-86cf-af3e-5eb6-8fad208413c4.htm" target="">CryptoGateway.RDB.Data.AspNetMember</a><br /><b>Assembly:</b> <span sdata="assembly">AspNetMemberServiceProxy.Desktop</span> (in AspNetMemberServiceProxy.Desktop.dll) Version: 0.0.0.0<div class="OH_CollapsibleAreaRegion"><div class="OH_regiontitle">Syntax</div><div class="OH_CollapsibleArea_HrDiv"><hr class="OH_CollapsibleArea_Hr" /></div></div><div class="OH_clear"></div><div id="snippetGroup_Syntax" class="code"><div id="ID0EDLDAAAAA" class="OH_CodeSnippetContainer"><div class="OH_CodeSnippetContainerTabs" id="ID0EDLDAAAAA_tabs"><div class="OH_CodeSnippetContainerTabLeftActive" id="ID0EDLDAAAAA_tabimgleft"></div><div id="ID0EDLDAAAAA_tab1" class="OH_CodeSnippetContainerTabActive" EnableCopyCode="true"><a href="#" onclick="javascript:ChangeTab('ID0EDLDAAAAA','C#','1','4');return false;">C#</a></div><div id="ID0EDLDAAAAA_tab2" class="OH_CodeSnippetContainerTab" EnableCopyCode="true"><a href="#" onclick="javascript:ChangeTab('ID0EDLDAAAAA','Visual Basic','2','4');return false;">VB</a></div><div id="ID0EDLDAAAAA_tab3" class="OH_CodeSnippetContainerTab" EnableCopyCode="true"><a href="#" onclick="javascript:ChangeTab('ID0EDLDAAAAA','Visual C++','3','4');return false;">C++</a></div><div id="ID0EDLDAAAAA_tab4" class="OH_CodeSnippetContainerTab" EnableCopyCode="true"><a href="#" onclick="javascript:ChangeTab('ID0EDLDAAAAA','F#','4','4');return false;">F#</a></div><div class="OH_CodeSnippetContainerTabRight" id="ID0EDLDAAAAA_tabimgright"></div></div><div id="ID0EDLDAAAAA_codecollection" class="OH_CodeSnippetContainerCodeCollection"><div class="OH_CodeSnippetToolBar"><div class="OH_CodeSnippetToolBarText"><a id="ID0EDLDAAAAA_ViewColorized" href="#" onclick="javascript:ExchangeTitleContent('ID0EDLDAAAAA','4')" title="View Colorized" style="display: none">View Colorized</a><a id="ID0EDLDAAAAA_copycode" href="#" onclick="javascript:CopyToClipboard('ID0EDLDAAAAA','4')" title="Copy to Clipboard">Copy to Clipboard</a><a id="ID0EDLDAAAAA_PrintText" class="OH_PrintText" href="#" onclick="javascript:Print('ID0EDLDAAAAA','4')" title="Print">Print</a></div></div><div id="ID0EDLDAAAAA_code_Div1" class="OH_CodeSnippetContainerCode" style="display: block"><pre><span class="keyword">public</span> <span class="identifier">OperationResults</span> <span class="identifier">DeleteEntities</span>(
	<span class="identifier">CallContext</span> <span class="parameter">cntx</span>,
	<span class="identifier">UsersInRoleSet</span> <span class="parameter">set</span>,
	<span class="identifier">UsersInRole</span>[] <span class="parameter">entities</span>
)</pre></div><div id="ID0EDLDAAAAA_code_Plain_Div1" class="OH_CodeSnippetContainerCode" style="display: none"><pre>public OperationResults DeleteEntities(
	CallContext cntx,
	UsersInRoleSet set,
	UsersInRole[] entities
)</pre></div><div id="ID0EDLDAAAAA_code_Div2" class="OH_CodeSnippetContainerCode" style="display: none"><pre><span class="keyword">Public</span> <span class="keyword">Function</span> <span class="identifier">DeleteEntities</span> ( 
	<span class="parameter">cntx</span> <span class="keyword">As</span> <span class="identifier">CallContext</span>,
	<span class="parameter">set</span> <span class="keyword">As</span> <span class="identifier">UsersInRoleSet</span>,
	<span class="parameter">entities</span> <span class="keyword">As</span> <span class="identifier">UsersInRole</span>()
) <span class="keyword">As</span> <span class="identifier">OperationResults</span></pre></div><div id="ID0EDLDAAAAA_code_Plain_Div2" class="OH_CodeSnippetContainerCode" style="display: none"><pre>Public Function DeleteEntities ( 
	cntx As CallContext,
	set As UsersInRoleSet,
	entities As UsersInRole()
) As OperationResults</pre></div><div id="ID0EDLDAAAAA_code_Div3" class="OH_CodeSnippetContainerCode" style="display: none"><pre><span class="keyword">public</span>:
<span class="keyword">virtual</span> <span class="identifier">OperationResults</span>^ <span class="identifier">DeleteEntities</span>(
	<span class="identifier">CallContext</span>^ <span class="parameter">cntx</span>, 
	<span class="identifier">UsersInRoleSet</span>^ <span class="parameter">set</span>, 
	<span class="keyword">array</span>&lt;<span class="identifier">UsersInRole</span>^&gt;^ <span class="parameter">entities</span>
) <span class="keyword">sealed</span></pre></div><div id="ID0EDLDAAAAA_code_Plain_Div3" class="OH_CodeSnippetContainerCode" style="display: none"><pre>public:
virtual OperationResults^ DeleteEntities(
	CallContext^ cntx, 
	UsersInRoleSet^ set, 
	array&lt;UsersInRole^&gt;^ entities
) sealed</pre></div><div id="ID0EDLDAAAAA_code_Div4" class="OH_CodeSnippetContainerCode" style="display: none"><pre><span class="keyword">abstract</span> <span class="identifier">DeleteEntities</span> : 
        <span class="parameter">cntx</span> : <span class="identifier">CallContext</span> * 
        <span class="parameter">set</span> : <span class="identifier">UsersInRoleSet</span> * 
        <span class="parameter">entities</span> : <span class="identifier">UsersInRole</span>[] <span class="keyword">-&gt;</span> <span class="identifier">OperationResults</span> 
<span class="keyword">override</span> <span class="identifier">DeleteEntities</span> : 
        <span class="parameter">cntx</span> : <span class="identifier">CallContext</span> * 
        <span class="parameter">set</span> : <span class="identifier">UsersInRoleSet</span> * 
        <span class="parameter">entities</span> : <span class="identifier">UsersInRole</span>[] <span class="keyword">-&gt;</span> <span class="identifier">OperationResults</span> </pre></div><div id="ID0EDLDAAAAA_code_Plain_Div4" class="OH_CodeSnippetContainerCode" style="display: none"><pre>abstract DeleteEntities : 
        cntx : CallContext * 
        set : UsersInRoleSet * 
        entities : UsersInRole[] -&gt; OperationResults 
override DeleteEntities : 
        cntx : CallContext * 
        set : UsersInRoleSet * 
        entities : UsersInRole[] -&gt; OperationResults </pre></div></div></div><script>addSpecificTextLanguageTagSet('ID0EDLDAAAAA');</script></div><div id="parameters"><h4 class="subHeading">Parameters</h4><dl paramName="cntx"><dt><span class="parameter">cntx</span></dt><dd>Type: <a href="1a3658b6-b213-9ff6-572e-f77262c032c5.htm" target="">CryptoGateway.RDB.Data.AspNetMember<span id="ID0EBCACKDAAAAA"> </span><script type="text/javascript">
					addToLanSpecTextIdSet("ID0EBCACKDAAAAA?vb=.|cpp=::|cs=.|fs=.|nu=.");
				</script>CallContext</a><br /><span>Authenticated caller context object. If cannot be null.</span></dd></dl><dl paramName="set"><dt><span class="parameter">set</span></dt><dd>Type: <a href="8d6a36f9-3d5c-85ed-b7b1-4606701ac0db.htm" target="">CryptoGateway.RDB.Data.AspNetMember<span id="ID0EBCABKDAAAAA"> </span><script type="text/javascript">
					addToLanSpecTextIdSet("ID0EBCABKDAAAAA?vb=.|cpp=::|cs=.|fs=.|nu=.");
				</script>UsersInRoleSet</a><br /><span>The current entity set.</span></dd></dl><dl paramName="entities"><dt><span class="parameter">entities</span></dt><dd>Type: <span id="ID0EEAAKDAAAAA"> </span><script type="text/javascript">
					addToLanSpecTextIdSet("ID0EEAAKDAAAAA?vb=|cpp=array&lt;|cs=|fs=|nu=");
				</script><a href="52602626-b655-6583-a7c5-2ece984837e7.htm" target="">CryptoGateway.RDB.Data.AspNetMember<span id="ID0EBDAAKDAAAAA"> </span><script type="text/javascript">
					addToLanSpecTextIdSet("ID0EBDAAKDAAAAA?vb=.|cpp=::|cs=.|fs=.|nu=.");
				</script>UsersInRole</a><span id="ID0ECAAKDAAAAA"> </span><script type="text/javascript">
					addToLanSpecTextIdSet("ID0ECAAKDAAAAA?vb=()|cpp=&gt;|cs=[]|fs=[]|nu=[]");
				</script><br /><span>The list of entities to be processed.</span></dd></dl></div><h4 class="subHeading">Return Value</h4>Type: <a href="78c13c98-eec0-35f6-13fc-1f69e89348a9.htm" target="">OperationResults</a><br />
              Operation result contained inside an object of type <a href="78c13c98-eec0-35f6-13fc-1f69e89348a9.htm" target="">OperationResults</a> which contains operation messages, if any.
            <h4 class="subHeading">Implements</h4><a href="f63c91c9-9100-4e01-2fa5-8d38da50ed7a.htm" target="">IUsersInRoleService2<span id="ID0EFBDAAAAA"> </span><script type="text/javascript">
					addToLanSpecTextIdSet("ID0EFBDAAAAA?vb=.|cpp=::|cs=.|fs=.|nu=.");
				</script>DeleteEntities(CallContext, UsersInRoleSet, <span id="ID0EDBDAAAAA"> </span><script type="text/javascript">
					addToLanSpecTextIdSet("ID0EDBDAAAAA?vb=|cpp=array&lt;|cs=|fs=|nu=");
				</script>UsersInRole<span id="ID0EBBDAAAAA"> </span><script type="text/javascript">
					addToLanSpecTextIdSet("ID0EBBDAAAAA?vb=()|cpp=&gt;|cs=[]|fs=[]|nu=[]");
				</script>)</a><br /><div class="OH_CollapsibleAreaRegion"><div class="OH_regiontitle">Remarks</div><div class="OH_CollapsibleArea_HrDiv"><hr class="OH_CollapsibleArea_Hr" /></div></div><div class="OH_clear"></div><p>
              Care should be taken when deleting an entire inter-dependent object sub-graph.
             </p><a name="seeAlsoSection"><!----></a><div class="OH_CollapsibleAreaRegion"><div class="OH_regiontitle">See Also</div><div class="OH_CollapsibleArea_HrDiv"><hr class="OH_CollapsibleArea_Hr" /></div></div><div class="OH_clear"></div><div class="seeAlsoStyle"><a href="a8a3b975-6471-db01-077c-68142783c2c7.htm" target="">UsersInRoleServiceProxy Class</a></div><div class="seeAlsoStyle"><a href="810df3b3-b605-fa98-bb27-3edcf22f4b8c.htm" target="">UsersInRoleServiceProxy Members</a></div><div class="seeAlsoStyle"><a href="9b9992ae-86cf-af3e-5eb6-8fad208413c4.htm" target="">CryptoGateway.RDB.Data.AspNetMember Namespace</a></div></div></div></div></div><div id="OH_footer" class="OH_footer"><p /><div class="OH_feedbacklink"><a href="mailto:?subject=Service+Proxy+API+for+Membership+data+sources+UsersInRoleServiceProxy.DeleteEntities+Method++100+EN-US&amp;body=Your%20feedback%20is%20used%20to%20improve%20the%20documentation%20and%20the%20product.%20Your%20e-mail%20address%20will%20not%20be%20used%20for%20any%20other%20purpose%20and%20is%20disposed%20of%20after%20the%20issue%20you%20report%20is%20resolved.%20While%20working%20to%20resolve%20the%20issue%20that%20you%20report%2c%20you%20may%20be%20contacted%20via%20e-mail%20to%20get%20further%20details%20or%20clarification%20on%20the%20feedback%20you%20sent.%20After%20the%20issue%20you%20report%20has%20been%20addressed%2c%20you%20may%20receive%20an%20e-mail%20to%20let%20you%20know%20that%20your%20feedback%20has%20been%20addressed.">Send Feedback</a> on this topic.</div></div></body></html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Founder CryptoGateway Software Inc.
Canada Canada


His interests in software research and development include security, domain specific meta-language development technologies and tools, meta-language driven code generation, generation of non-invasive and virtual SQL database for "un-structured" data (sqlization), automated relational data service production technologies, file system sqlization technologies and products, structured multi-lingual documentation tools and technologies, sqlization of user's personal data, like emails, etc..


He was a physicist before year 2000. He studied theoretical physics (the hidden symmetry between the past and future, quantum field theories, mirror universe, cosmological dark energies etc.) in which he think to had made fundamental breakthroughs[^] but the community is either not ready for it or is actively rejecting/ignoring it Smile | :) .



It struck me on Apr. 11, 2023 that the said theory above can even generate General Relativity naturally after a recent discussion in the Insider News group that triggers a rethinking of the subject on my side. The first stage of the work is completed in Sept. 2023, it is and will be continue to be published online

  • On Vacuum
  • Quantum and Gravity







    Most recent software system to share:



    • V-NET[^] - Full stack virtualization management system including networking, storage, virtual machines and containers, with an emphasis on networking ... to be released.

Comments and Discussions