ContentGrant Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Inicjuje nowe wystąpienie klasy ContentGrant.
Przeciążenia
ContentGrant(ContentUser, ContentRight) |
Inicjuje ContentGrant nowe wystąpienie klasy, która przyznaje określony ContentUser element ContentRight. |
ContentGrant(ContentUser, ContentRight, DateTime, DateTime) |
Inicjuje ContentGrant nowe wystąpienie klasy, która przyznaje określony określony ContentUserContentRightDateTime czas trwania. |
ContentGrant(ContentUser, ContentRight)
Inicjuje ContentGrant nowe wystąpienie klasy, która przyznaje określony ContentUser element ContentRight.
public:
ContentGrant(System::Security::RightsManagement::ContentUser ^ user, System::Security::RightsManagement::ContentRight right);
public ContentGrant (System.Security.RightsManagement.ContentUser user, System.Security.RightsManagement.ContentRight right);
new System.Security.RightsManagement.ContentGrant : System.Security.RightsManagement.ContentUser * System.Security.RightsManagement.ContentRight -> System.Security.RightsManagement.ContentGrant
Public Sub New (user As ContentUser, right As ContentRight)
Parametry
- user
- ContentUser
Użytkownikowi udzielono prawa dostępu.
- right
- ContentRight
Przyznane prawo dostępu.
Uwagi
Ten konstruktor inicjuje ContentGrant wystąpienie bez ograniczeń daty lub godziny.
Właściwość jest ustawiona ValidFrom na DateTimewartość .MinValue Oznacza to, że nie ma żadnego ograniczenia początkowego.
Właściwość jest ustawiona ValidUntil na DateTimewartość .MaxValue Oznacza to, że nie ma żadnego ograniczenia końcowego.
Użyj alternatywnego ContentGrant konstruktora, aby utworzyć wystąpienie z ograniczeniami daty i godziny.
Zobacz też
Dotyczy
ContentGrant(ContentUser, ContentRight, DateTime, DateTime)
Inicjuje ContentGrant nowe wystąpienie klasy, która przyznaje określony określony ContentUserContentRightDateTime czas trwania.
public:
ContentGrant(System::Security::RightsManagement::ContentUser ^ user, System::Security::RightsManagement::ContentRight right, DateTime validFrom, DateTime validUntil);
public ContentGrant (System.Security.RightsManagement.ContentUser user, System.Security.RightsManagement.ContentRight right, DateTime validFrom, DateTime validUntil);
new System.Security.RightsManagement.ContentGrant : System.Security.RightsManagement.ContentUser * System.Security.RightsManagement.ContentRight * DateTime * DateTime -> System.Security.RightsManagement.ContentGrant
Public Sub New (user As ContentUser, right As ContentRight, validFrom As DateTime, validUntil As DateTime)
Parametry
- user
- ContentUser
Użytkownikowi udzielono prawa dostępu.
- right
- ContentRight
Przyznane prawo dostępu.
- validFrom
- DateTime
Data i godzina rozpoczęcia od prawej.
- validUntil
- DateTime
Data zakończenia i godzina wygaśnięcia prawa.
Uwagi
validFrom
Określ parametr z parametrem DateTime.MinValue jeśli nie ma ograniczenia daty rozpoczęcia i godziny.
validUntil
Określ parametr z parametrem DateTime.MaxValue jeśli nie ma ograniczenia daty i godziny zakończenia.