181 references to PersonalizationScope
System.Web (181)
UI\WebParts\BehaviorEditorPart.cs (1)
64
(WebPartManager.Personalization.Scope ==
PersonalizationScope
.User)) {
UI\WebParts\BlobPersonalizationState.cs (32)
67
private
PersonalizationScope
PersonalizationScope {
105
PersonalizationScope
extractScope, GenericWebPart genericWebPart) {
147
if (PersonalizationScope ==
PersonalizationScope
.Shared) {
172
if (PersonalizationScope ==
PersonalizationScope
.User) {
210
properties,
PersonalizationScope
.Shared);
297
properties,
PersonalizationScope
.Shared);
356
PersonalizationScope
extractScope = PersonalizationScope;
357
if ((extractScope ==
PersonalizationScope
.User) && (!webPart.IsShared)) {
360
extractScope =
PersonalizationScope
.Shared;
532
PersonalizationScope
propertyScope =
533
(bool)items[offset++] ?
PersonalizationScope
.Shared :
PersonalizationScope
.User;
580
PersonalizationScope
scope, bool isStatic, GenericWebPart genericWebPart) {
624
if (scope ==
PersonalizationScope
.User) {
669
if (scope ==
PersonalizationScope
.User) {
750
if (PersonalizationScope ==
PersonalizationScope
.Shared) {
771
PersonalizationScope
extractScope = PersonalizationScope;
772
if ((extractScope ==
PersonalizationScope
.User) && (!webPart.IsShared)) {
775
extractScope =
PersonalizationScope
.Shared;
811
internal static IDictionary GetPersonalizedProperties(Control control,
PersonalizationScope
scope) {
827
PersonalizationScope
scope) {
834
bool ignoreSharedProperties = (scope ==
PersonalizationScope
.User);
840
if (ignoreSharedProperties && (property.Scope ==
PersonalizationScope
.Shared)) {
885
if (PersonalizationScope ==
PersonalizationScope
.Shared) {
944
if (PersonalizationScope ==
PersonalizationScope
.Shared && hasSharedCustomProperties) {
947
else if (PersonalizationScope ==
PersonalizationScope
.User && hasUserCustomProperties) {
984
if (PersonalizationScope ==
PersonalizationScope
.Shared) {
1069
items.Add(personalizationEntry.Scope ==
PersonalizationScope
.Shared);
1132
return SetPersonalizedProperties(control, personalizableProperties, propertyState,
PersonalizationScope
.Shared);
1139
IDictionary propertyState,
PersonalizationScope
scope) {
1162
(scope ==
PersonalizationScope
.Shared || property.Scope ==
PersonalizationScope
.User)) {
UI\WebParts\EditorPart.cs (1)
56
WebPartManager.Personalization.Scope ==
PersonalizationScope
.User) {
UI\WebParts\ImportCatalogPart.cs (1)
214
bool isShared = (WebPartManager.Personalization.Scope ==
PersonalizationScope
.Shared);
UI\WebParts\PersonalizableAttribute.cs (12)
40
public static readonly PersonalizableAttribute UserPersonalizable = new PersonalizableAttribute(
PersonalizationScope
.User);
45
public static readonly PersonalizableAttribute SharedPersonalizable = new PersonalizableAttribute(
PersonalizationScope
.Shared);
55
private
PersonalizationScope
_scope;
62
public PersonalizableAttribute() : this(true,
PersonalizationScope
.User, false) {
69
public PersonalizableAttribute(bool isPersonalizable) : this(isPersonalizable,
PersonalizationScope
.User, false) {
76
public PersonalizableAttribute(
PersonalizationScope
scope) : this(true, scope, false) {
83
public PersonalizableAttribute(
PersonalizationScope
scope, bool isSensitive) : this(true, scope, isSensitive) {
90
private PersonalizableAttribute(bool isPersonalizable,
PersonalizationScope
scope, bool isSensitive) {
121
public
PersonalizationScope
Scope {
184
internal static IDictionary GetPersonalizablePropertyValues(Control control,
PersonalizationScope
scope, bool excludeSensitive) {
196
if ((scope ==
PersonalizationScope
.User) &&
197
(propEntry.Scope ==
PersonalizationScope
.Shared)) {
UI\WebParts\PersonalizablePropertyEntry.cs (2)
18
private
PersonalizationScope
_scope;
33
public
PersonalizationScope
Scope {
UI\WebParts\PersonalizationAdministration.cs (21)
84
public static int ResetAllState(
PersonalizationScope
scope) {
112
count += ResetStatePrivate(
PersonalizationScope
.Shared, sharedPathsArray, null);
120
int count = ResetStatePrivate(
PersonalizationScope
.Shared, paths, null);
130
return ResetStatePrivate(
PersonalizationScope
.Shared, paths, null);
136
return ResetStatePrivate(
PersonalizationScope
.User, paths, null);
141
return ResetStatePrivate(
PersonalizationScope
.User, null, usernames);
149
int count = ResetStatePrivate(
PersonalizationScope
.User, paths, usernames);
161
return ResetStatePrivate(
PersonalizationScope
.User, paths, usernames);
165
private static int ResetStatePrivate(
PersonalizationScope
scope, string[] paths, string[] usernames) {
190
public static int GetCountOfState(
PersonalizationScope
scope) {
194
public static int GetCountOfState(
PersonalizationScope
scope, string pathToMatch) {
203
private static int GetCountOfStatePrivate(
PersonalizationScope
scope,
215
return GetCountOfStatePrivate(
PersonalizationScope
.User, stateQuery);
228
return GetCountOfStatePrivate(
PersonalizationScope
.User, stateQuery);
233
PersonalizationScope
scope,
242
public static PersonalizationStateInfoCollection GetAllState(
PersonalizationScope
scope) {
247
public static PersonalizationStateInfoCollection GetAllState(
PersonalizationScope
scope,
266
return FindStatePrivate(
PersonalizationScope
.User, stateQuery, pageIndex, pageSize, out totalRecords);
281
return FindStatePrivate(
PersonalizationScope
.Shared, stateQuery, pageIndex, pageSize, out totalRecords);
301
return FindStatePrivate(
PersonalizationScope
.User, stateQuery, pageIndex,
325
return FindStatePrivate(
PersonalizationScope
.User, stateQuery, pageIndex,
UI\WebParts\PersonalizationDictionary.cs (1)
116
if (((PersonalizationEntry)entry.Value).Scope ==
PersonalizationScope
.Shared) {
UI\WebParts\PersonalizationEntry.cs (6)
12
private
PersonalizationScope
_scope;
16
public PersonalizationEntry(object value,
PersonalizationScope
scope) : this(value, scope, false) {
19
public PersonalizationEntry(object value,
PersonalizationScope
scope, bool isSensitive) {
27
public
PersonalizationScope
Scope {
32
if (value <
PersonalizationScope
.User || value >
PersonalizationScope
.Shared) {
UI\WebParts\PersonalizationProvider.cs (14)
57
public virtual
PersonalizationScope
DetermineInitialScope(WebPartManager webPartManager, PersonalizationState loadedState) {
74
PersonalizationScope
scope = webPartManager.Personalization.InitialScope;
83
scope =
PersonalizationScope
.Shared;
89
scope =
PersonalizationScope
.Shared;
92
scope =
PersonalizationScope
.User;
108
scope = (page.IsExportingWebPartShared ?
PersonalizationScope
.Shared :
PersonalizationScope
.User);
111
if ((scope ==
PersonalizationScope
.Shared) &&
113
scope =
PersonalizationScope
.User;
117
string fieldValue = (scope ==
PersonalizationScope
.Shared) ? sharedScopeFieldValue : userScopeFieldValue;
173
public abstract PersonalizationStateInfoCollection FindState(
PersonalizationScope
scope,
178
public abstract int GetCountOfState(
PersonalizationScope
scope, PersonalizationStateQuery query);
202
if ((webPartManager.Personalization.Scope ==
PersonalizationScope
.User) && page.Request.IsAuthenticated) {
264
public abstract int ResetState(
PersonalizationScope
scope, string[] paths, string[] usernames);
UI\WebParts\PersonalizationProviderHelper.cs (4)
121
internal static void CheckPersonalizationScope(
PersonalizationScope
scope) {
122
if (scope <
PersonalizationScope
.User || scope >
PersonalizationScope
.Shared) {
130
"usernames", "scope",
PersonalizationScope
.Shared.ToString()));
UI\WebParts\PropertyGridEditorPart.cs (1)
159
WebPartManager.Personalization.Scope ==
PersonalizationScope
.User) {
UI\WebParts\SqlPersonalizationProvider.cs (10)
159
public override PersonalizationStateInfoCollection FindState(
PersonalizationScope
scope,
166
if (scope ==
PersonalizationScope
.Shared) {
354
public override int GetCountOfState(
PersonalizationScope
scope, PersonalizationStateQuery query) {
356
if (scope ==
PersonalizationScope
.Shared) {
630
private int ResetAllState(
PersonalizationScope
scope) {
649
parameter.Value = (scope ==
PersonalizationScope
.Shared);
680
resultCount = ResetAllState(
PersonalizationScope
.Shared);
754
public override int ResetState(
PersonalizationScope
scope, string[] paths, string[] usernames) {
759
if (scope ==
PersonalizationScope
.Shared) {
775
count = ResetAllState(
PersonalizationScope
.User);
UI\WebParts\WebPart.cs (16)
93
Personalizable(
PersonalizationScope
.Shared),
109
Personalizable(
PersonalizationScope
.Shared),
129
Personalizable(
PersonalizationScope
.Shared),
147
Personalizable(
PersonalizationScope
.Shared),
166
Personalizable(
PersonalizationScope
.Shared),
185
Personalizable(
PersonalizationScope
.Shared),
201
Personalizable(
PersonalizationScope
.Shared),
220
Personalizable(
PersonalizationScope
.Shared),
288
Personalizable(
PersonalizationScope
.Shared),
338
Personalizable(
PersonalizationScope
.Shared),
350
(WebPartManager.Personalization.Scope ==
PersonalizationScope
.User && IsShared))) {
401
Personalizable(
PersonalizationScope
.Shared),
425
Personalizable(
PersonalizationScope
.Shared),
486
Personalizable(
PersonalizationScope
.Shared),
569
Personalizable(
PersonalizationScope
.Shared),
588
Personalizable(
PersonalizationScope
.Shared),
UI\WebParts\WebPartChrome.cs (4)
32
private
PersonalizationScope
_personalizationScope;
64
_personalizationScope =
PersonalizationScope
.Shared;
484
(_personalizationScope ==
PersonalizationScope
.User)) {
758
(webPart.IsShared && _personalizationScope ==
PersonalizationScope
.User) ||
UI\WebParts\WebPartManager.cs (40)
910
Internals.SetIsShared(newWebPart, Personalization.Scope ==
PersonalizationScope
.Shared);
1413
else if (webPart.IsShared && (Personalization.Scope ==
PersonalizationScope
.User)) {
1712
Internals.SetIsShared(connection, Personalization.Scope ==
PersonalizationScope
.Shared);
2136
!(Personalization.Scope ==
PersonalizationScope
.Shared));
2159
IDictionary propBag = PersonalizableAttribute.GetPersonalizablePropertyValues(webPart,
PersonalizationScope
.Shared, excludeSensitive);
2172
PersonalizationScope
.Shared,
2206
PersonalizationScope
scope, bool isIPersonalizable) {
2244
PersonalizationScope
scope =
PersonalizationScope
.User;
2254
(Personalization.Scope ==
PersonalizationScope
.Shared ||
2255
personalizationEntry.Scope ==
PersonalizationScope
.User)) {
2417
(Personalization.Scope ==
PersonalizationScope
.Shared) ? "&scope=shared" : String.Empty;
2746
bool isShared = (Personalization.Scope ==
PersonalizationScope
.Shared);
3126
PersonalizationScope
personalizationScope =
3127
String.Equals(scope,
PersonalizationScope
.Shared.ToString(), StringComparison.OrdinalIgnoreCase) ?
3128
PersonalizationScope
.Shared :
PersonalizationScope
.User;
3323
Internals.SetIsShared(connection, (entry.Scope ==
PersonalizationScope
.Shared));
3452
bool isShared = (entry.Scope ==
PersonalizationScope
.Shared);
3496
Debug.Assert(connectionToDelete.IsStatic || entry.Scope ==
PersonalizationScope
.User);
3896
(Personalization.Scope ==
PersonalizationScope
.Shared ? "true" : "false"),
4023
PersonalizationScope
scope = Personalization.Scope;
4035
if (scope ==
PersonalizationScope
.Shared) {
4037
new PersonalizationEntry(webPartState,
PersonalizationScope
.Shared);
4041
new PersonalizationEntry(webPartState,
PersonalizationScope
.User);
4049
((scope ==
PersonalizationScope
.User && !webPart.IsShared) ||
4050
(scope ==
PersonalizationScope
.Shared && webPart.IsShared))) {
4104
if (scope ==
PersonalizationScope
.Shared) {
4106
new PersonalizationEntry(dynamicWebPartState,
PersonalizationScope
.Shared);
4110
new PersonalizationEntry(dynamicWebPartState,
PersonalizationScope
.User);
4140
Debug.Assert(deletedConnection.IsStatic || scope ==
PersonalizationScope
.User);
4143
if (scope ==
PersonalizationScope
.Shared) {
4145
new PersonalizationEntry(deletedConnectionsState,
PersonalizationScope
.Shared);
4149
new PersonalizationEntry(deletedConnectionsState,
PersonalizationScope
.User);
4156
if (((scope ==
PersonalizationScope
.User) && (!connection.IsShared)) ||
4157
((scope ==
PersonalizationScope
.Shared) && (connection.IsShared))) {
4185
if (scope ==
PersonalizationScope
.Shared) {
4187
new PersonalizationEntry(dynamicConnectionState,
PersonalizationScope
.Shared);
4191
new PersonalizationEntry(dynamicConnectionState,
PersonalizationScope
.User);
4292
if (connection.IsShared && (Personalization.Scope ==
PersonalizationScope
.User)) {
UI\WebParts\WebPartPersonalization.cs (15)
33
private
PersonalizationScope
_initialScope;
39
private
PersonalizationScope
_currentScope;
121
if (Scope ==
PersonalizationScope
.User && request.IsAuthenticated) {
136
DefaultValue(
PersonalizationScope
.User),
140
public virtual
PersonalizationScope
InitialScope {
145
if ((value <
PersonalizationScope
.User) || (value >
PersonalizationScope
.Shared)) {
232
public
PersonalizationScope
Scope {
317
protected virtual void ChangeScope(
PersonalizationScope
scope) {
324
if ((scope ==
PersonalizationScope
.Shared) && (!CanEnterSharedScope)) {
464
info.Properties = BlobPersonalizationState.GetPersonalizedProperties(control,
PersonalizationScope
.Shared);
499
protected virtual
PersonalizationScope
Load() {
639
if (_currentScope ==
PersonalizationScope
.Shared) {
640
ChangeScope(
PersonalizationScope
.User);
643
ChangeScope(
PersonalizationScope
.Shared);